Documentation ¶
Index ¶
- Variables
- func AngularFilename(value string) string
- func AngularRestName(tmp string) string
- func ConfigParamName(field *structs.ParamConfig) string
- func ConfigParamTag(field *structs.ParamConfig) string
- func ConfigParamType(field *structs.ParamConfig) string
- func DisplayMethodNameGet(value string) string
- func DisplayMethodNamePost(value string) string
- func FieldChildName(field *structs.Field) string
- func FieldDBName(field *structs.Field) (res string)
- func FieldDbTableType(field *structs.Field) string
- func FieldDescript(field *structs.Field, fieldId bool) (str string)
- func FieldJsonName(field *structs.Field) string
- func FieldName(field *structs.Field) string
- func FieldNameLowerPrepare(value string) string
- func FieldNamePrepare(value string) string
- func FieldType(field *structs.Field) string
- func FieldTypeDB(field *structs.Field) string
- func FieldTypeParentTable(field *structs.Field) string
- func GetModelName(project *structs.Project, value structs.VisField) string
- func HasFieldType(fields []structs.Field, typeName string) (has bool)
- func IsMethod(arr map[string][]string, method string) bool
- func MethodComment(value string) string
- func MethodNameGet(value string) string
- func MethodNameGetId(value string) string
- func MethodNamePost(value string) string
- func MethodSummary(value string) string
- func MkdirIsNotExists(pathdir string) (err error)
- func PackageName(name string) string
- func PrepareTmplFile(filename string, data interface{}, outname string) (err error)
- func PrepareTmplIsNotExists(filename string, data interface{}, outname string) (err error)
- func RandomHex(n int) (string, error)
- func RemoveFirstChar(value string) string
- func Roles(arr map[string][]string, method string) []string
- func WriteTmplFile(filename string, outname string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Content embed.FS
Functions ¶
func AngularFilename ¶ added in v0.0.9
func AngularRestName ¶ added in v0.0.9
func ConfigParamName ¶
func ConfigParamName(field *structs.ParamConfig) string
Вернуть название параметра
func ConfigParamTag ¶
func ConfigParamTag(field *structs.ParamConfig) string
Вернуть строку для тэгирования параметров
func ConfigParamType ¶
func ConfigParamType(field *structs.ParamConfig) string
Вернуть тип параметра
func DisplayMethodNameGet ¶
func DisplayMethodNamePost ¶
func FieldChildName ¶ added in v0.0.12
func FieldDbTableType ¶ added in v0.0.12
func FieldDescript ¶
Генерирование описания таблиц в БД
func FieldJsonName ¶
func FieldNameLowerPrepare ¶
func FieldNamePrepare ¶
func FieldTypeDB ¶
func FieldTypeParentTable ¶ added in v0.0.12
func MethodComment ¶
func MethodNameGet ¶
func MethodNameGetId ¶
func MethodNamePost ¶
func MethodSummary ¶
func MkdirIsNotExists ¶
func PackageName ¶
func PrepareTmplFile ¶
Использование шаблона
func PrepareTmplIsNotExists ¶
func RemoveFirstChar ¶ added in v0.0.9
func WriteTmplFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.