Documentation ¶
Index ¶
Constants ¶
View Source
const ( GenerateGoConfigTemplate = `` /* 1856-byte string literal not displayed */ GenerateGoDefineTemplate = `` /* 149-byte string literal not displayed */ )
Variables ¶
View Source
var ( ErrReadConfigFailedIgnore = errors.New("read config skip ignore") ErrReadConfigFailedSame = errors.New("read config skip, same name") ErrReadConfigFailedWithDisplayName = errors.New("read config display name failed, can not found position") ErrReadConfigFailedWithName = errors.New("read config name failed, can not found position") ErrReadConfigFailedWithIndexCount = errors.New("read config index count failed, can not found position") ErrReadConfigFailedWithIndexCountLessThanZero = errors.New("read config index count failed, value less than zero") ErrReadConfigFailedWithFieldPosition = errors.New("read config index count failed, field position exception") ErrReadConfigFailedWithNameDuplicate = errors.New("read config index count failed, duplicate field names") ErrReadConfigFailedWithExportParamException = errors.New("read config index count failed, export param must is s or c or sc or cs") ErrReadConfigFailedWithIndexTypeException = errors.New("read config index count failed, the index type is only allowed to be the basic type") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Exist map[string]bool Prefix string DisplayName string Name string Describe string ExportParam string IndexCount int Fields []*Field // contains filtered or unexported fields }
func (*Config) GetVariable ¶
func (*Config) GetVariableGen ¶
func (*Config) JsonClient ¶
func (*Config) JsonServer ¶
Click to show internal directories.
Click to hide internal directories.