parser

package
v0.0.0-...-932180f Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypesPrefix = "types."
)

Variables

This section is empty.

Functions

func HandleCfg

func HandleCfg(inCfg *models.Config) (cfg *models.Config, err error)

HandleCfg handles models.Config for fill config fields for templates

func IsStandardColumn

func IsStandardColumn(column string) bool

IsStandardColumn check if column is one of column which description column with auto substituted when model is created or modified

func IsStandardType

func IsStandardType(t string) bool

IsStandardType checks standard type or not

func IsTimeFormat

func IsTimeFormat(format string) bool

IsTimeFormat return true if format is one of timeFormats value

func IsTypesAdditionalType

func IsTypesAdditionalType(BusinessType string) bool

IsTypesAdditionalType return true if go type is from types package

func ReadYAMLCfg

func ReadYAMLCfg(file string) (*models.Config, error)

ReadYAMLCfg create models.Config from configFile

func SortColumns

func SortColumns(columns map[string]models.Options) []string

SortColumns returns sorted keys for columns map ("id" will be first, if it exist).

Types

This section is empty.

Jump to

Keyboard shortcuts

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