items id
This commit is contained in:
@ -13,7 +13,8 @@ type (
|
||||
)
|
||||
|
||||
{{- range .}}
|
||||
func ({{.Name | ToGoTypeName}}) ID() string { return {{.Name | printf "%q"}} }
|
||||
func ({{.Name | ToGoTypeName}}) Name() string { return {{.Name | printf "%q"}} }
|
||||
func ({{.Name | ToGoTypeName}}) ID() ID { return {{.Id | printf "%d"}} }
|
||||
{{- end}}
|
||||
|
||||
{{- range .}}
|
||||
|
Reference in New Issue
Block a user