yt-gen-app/lib/templ/tmpl/backend/structs/struct.tmpl
Ymnuk 4631b5973e
All checks were successful
continuous-integration/drone/tag Build is passing
Генерирование с учетом структур
2023-08-25 15:05:28 +03:00

7 lines
289 B
Cheetah

package structs
type {{ fieldNamePrepare .Name }} struct {
{{ range $index, $field := .Fields }}
{{ fieldName $field }} {{ fieldType $field }} `yaml:"{{ fieldJsonNameStr .Name }},omitempty" json:"{{ fieldJsonNameStr .Name }},omitempty"` // {{ $field.Description }}
{{ end }}
}