// this file is auto create by program, don't edit manually // template document https://pkg.go.dev/text/template@go1.17.2 package data // enums {{- range $index, $enum := .CustomEnums}} type {{$enum.Name}} int8 const ( {{- $maxNameLen := (CustomEnumNameMaxLen .)}} {{- $nameFmt := (printf "%%-%ds" $maxNameLen)}} {{- $maxValueLen := (CustomEnumValueMaxLen .)}} {{- $valueFmt := (printf "%%-%dd" $maxValueLen)}} {{- range $enum.Values}} {{.Name | printf $nameFmt}} {{$enum.Name}} = {{.Value | printf $valueFmt}} // {{.Comment}} {{- end}} ) {{end}} // custom types {{- range .CustomTypes}} type {{.Name}} struct { {{- $maxNameLen := (CustomTypeNameMaxLen .)}} {{- $nameFmt := (printf "%%-%ds" $maxNameLen)}} {{- $maxTypeLen := (CustomTypeTypeNameMaxLen .)}} {{- $typeFmt := (printf "%%-%ds" $maxTypeLen)}} {{- range .Fields}} {{Capital .Name | printf $nameFmt}} {{GetTypeName .TypeName | printf $typeFmt}} // {{.Comment}}{{end}} } {{end}}