Documentation ¶
Index ¶
- func AddField(config *Config, name, desc, typ, param string, index int, isKey bool, pos int) error
- func IsBasicType(t FieldType) bool
- type Config
- func (c *Config) GetDescription() string
- func (c *Config) GetField(name string) Field
- func (c *Config) GetFieldNum() int
- func (c *Config) GetFieldStructure(name string) []Structure
- func (c *Config) GetFieldStructures() map[string][]Structure
- func (c *Config) GetFields() map[string]Field
- func (c *Config) GetFieldsWithSort() []Field
- func (c *Config) GetName() string
- type Field
- type FieldType
- type Structure
- type StructureField
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetFieldStructure ¶
GetFieldStructure 获取指定字段的结构体
func (*Config) GetFieldStructures ¶
GetFieldStructures 获取原始字段描述中包含的结构体
func (*Config) GetFieldsWithSort ¶
GetFieldsWithSort 获取原始字段描述并按照索引排序
type FieldType ¶
type FieldType = string
const ( FieldTypeInt FieldType = "int" FieldTypeInt8 FieldType = "int8" FieldTypeInt16 FieldType = "int16" FieldTypeInt32 FieldType = "int32" FieldTypeInt64 FieldType = "int64" FieldTypeUint FieldType = "uint" FieldTypeUint8 FieldType = "uint8" FieldTypeUint16 FieldType = "uint16" FieldTypeUint32 FieldType = "uint32" FieldTypeUint64 FieldType = "uint64" FieldTypeFloat32 FieldType = "float32" FieldTypeFloat64 FieldType = "float64" FieldTypeString FieldType = "string" FieldTypeBool FieldType = "bool" )
type Structure ¶
type Structure struct {
// contains filtered or unexported fields
}
Structure 结构体描述
type StructureField ¶
type StructureField struct {
// contains filtered or unexported fields
}
StructureField 结构体字段描述
Click to show internal directories.
Click to hide internal directories.