templ

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content embed.FS

Functions

func AngularFilename added in v0.0.9

func AngularFilename(value string) string

func AngularRestName added in v0.0.9

func AngularRestName(tmp string) string

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 DisplayMethodNameGet(value string) string

func DisplayMethodNamePost

func DisplayMethodNamePost(value string) string

func FieldChildName added in v0.0.12

func FieldChildName(field *structs.Field) string

func FieldDBName

func FieldDBName(field *structs.Field) (res string)

Возвращает имя в БД

func FieldDbTableType added in v0.0.12

func FieldDbTableType(field *structs.Field) string

func FieldDescript

func FieldDescript(field *structs.Field, fieldId bool) (str string)

Генерирование описания таблиц в БД

func FieldJsonName

func FieldJsonName(field *structs.Field) string

func FieldName

func FieldName(field *structs.Field) string

func FieldNameLowerPrepare

func FieldNameLowerPrepare(value string) string

func FieldNamePrepare

func FieldNamePrepare(value string) string

func FieldType

func FieldType(field *structs.Field) string

func FieldTypeDB

func FieldTypeDB(field *structs.Field) string

func FieldTypeParentTable added in v0.0.12

func FieldTypeParentTable(field *structs.Field) string

func GetModelName

func GetModelName(project *structs.Project, value structs.VisField) string

func HasFieldType

func HasFieldType(fields []structs.Field, typeName string) (has bool)

func IsMethod

func IsMethod(arr map[string][]string, method string) bool

func MethodComment

func MethodComment(value string) string

func MethodNameGet

func MethodNameGet(value string) string

func MethodNameGetId

func MethodNameGetId(value string) string

func MethodNamePost

func MethodNamePost(value string) string

func MethodSummary

func MethodSummary(value string) string

func MkdirIsNotExists

func MkdirIsNotExists(pathdir string) (err error)

func PackageName

func PackageName(name string) string

func PrepareTmplFile

func PrepareTmplFile(filename string, data interface{}, outname string) (err error)

Использование шаблона

func PrepareTmplIsNotExists

func PrepareTmplIsNotExists(filename string, data interface{}, outname string) (err error)

func RandomHex

func RandomHex(n int) (string, error)

func RemoveFirstChar added in v0.0.9

func RemoveFirstChar(value string) string

func Roles

func Roles(arr map[string][]string, method string) []string

func WriteTmplFile

func WriteTmplFile(filename string, outname string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL