Versions in this module Expand all Collapse all v0 v0.1.0 Dec 13, 2019 v0.0.9 Dec 12, 2019 v0.0.8 Dec 12, 2019 v0.0.7 Dec 12, 2019 v0.0.6 Dec 12, 2019 v0.0.5 Dec 12, 2019 v0.0.4 Dec 12, 2019 v0.0.3 Dec 12, 2019 v0.0.2 Dec 12, 2019 v0.0.1 Dec 12, 2019 v0.0.0 Dec 12, 2019 Changes in this version + const RepeatedKeyword + const RepeatedKeywordLen + const SliceKeyword + const SliceKeywordLen + const TypeSheetName + var ErrDuplicateFieldName = errors.New("Duplicate field name") + var ErrDuplicateIndexName = errors.New("Duplicate index name") + func FieldTypeToString(t FieldType) string + func IsSystemTag(tag string) bool + func MakeTag(t int32, order int32) int32 + type Builtin struct + type BuiltinTable struct + func NewBuiltinTable() *BuiltinTable + func (self *BuiltinTable) Load(filename string) error + func (self *BuiltinTable) RegisterIndexEntry(name string, indexCallback func(*BuiltinTable), ...) + type ConditionType int32 + const ConditionType_None + const ConditionType_ValueEqual + const ConditionType_ValueExists + const ConditionType_ValueRange + type DataModel struct + Lines []*LineData + func NewDataModel() *DataModel + func (self *DataModel) Add(data *LineData) + type Descriptor struct + FieldByName map[string]*FieldDescriptor + FieldByNumber map[int32]*FieldDescriptor + Fields []*FieldDescriptor + File *FileDescriptor + IndexByName map[string]*FieldDescriptor + Indexes []*FieldDescriptor + Kind DescriptorKind + Name string + Usage DescriptorUsage + func NewDescriptor() *Descriptor + func (self *Descriptor) Add(def *FieldDescriptor) error + func (self *Descriptor) FieldByValueAndMeta(value string) *FieldDescriptor + type DescriptorKind int + const DescriptorKind_Enum + const DescriptorKind_None + const DescriptorKind_Struct + type DescriptorUsage int + const DescriptorUsage_CombineStruct + const DescriptorUsage_None + const DescriptorUsage_RowType + type FieldDescriptor struct + Comment string + Complex *Descriptor + EnumValue int32 + IsRepeated bool + Meta *MetaInfo + Name string + Order int32 + Parent *Descriptor + Type FieldType + func NewFieldDescriptor() *FieldDescriptor + func (self *FieldDescriptor) DefaultValue() string + func (self *FieldDescriptor) Equal(fd *FieldDescriptor) bool + func (self *FieldDescriptor) KindString() string + func (self *FieldDescriptor) ListSpliter() string + func (self *FieldDescriptor) ParseType(fileD *FileDescriptor, rawstr string) bool + func (self *FieldDescriptor) RepeatCheck() bool + func (self *FieldDescriptor) String() string + func (self *FieldDescriptor) Tag() int32 + func (self *FieldDescriptor) TypeString() string + type FieldType int + const FieldType_Bool + const FieldType_Enum + const FieldType_Float + const FieldType_Int32 + const FieldType_Int64 + const FieldType_None + const FieldType_String + const FieldType_Struct + const FieldType_Table + const FieldType_UInt32 + const FieldType_UInt64 + func ParseFieldType(str string) (t FieldType, ok bool) + type FieldValue struct + C int + FieldDef *FieldDescriptor + FieldRepeatedCount int + FileName string + R int + RawValue string + SheetName string + type FileDescriptor struct + DescriptorByName map[string]*Descriptor + Descriptors []*Descriptor + Name string + Pragma *MetaInfo + func NewFileDescriptor() *FileDescriptor + func (self *FileDescriptor) Add(def *Descriptor) bool + func (self *FileDescriptor) MatchTag(tag string) bool + func (self *FileDescriptor) RowDescriptor() *Descriptor + type GlobalChecker interface + CheckValueRepeat func(fd *FieldDescriptor, value string) bool + GlobalFileDesc func() *FileDescriptor + type LineData struct + Values []*FieldValue + func NewLineData() *LineData + func (self *LineData) Add(fv *FieldValue) + func (self *LineData) Len() int + func (self *LineData) Less(i, j int) bool + func (self *LineData) Swap(i, j int) + type MetaInfo struct + func NewMetaInfo() *MetaInfo + func (self *MetaInfo) VisitUserMeta(callback func(string, interface{}) bool) + type Node struct + Child []*Node + EnumValue int32 + Raw []byte + StructRoot bool + SugguestIgnore bool + Value string + func (self *Node) AddKey(def *FieldDescriptor) *Node + func (self *Node) AddValue(value string) *Node + type Record struct + Nodes []*Node + func NewRecord() *Record + func (self *Record) NewNodeByDefine(def *FieldDescriptor) *Node + type Table struct + GlobalFD *FileDescriptor + LocalFD *FileDescriptor + Recs []*Record + func NewTable() *Table + func (self *Table) Add(r *Record) + func (self *Table) Name() string + type TableTypes struct + Alias string + Comment string + Default string + FieldName string + FieldType string + Meta string + ObjectType string + Value string + type TableVerify struct + Condition string + FieldPath string + RuleName string + Value string + type ValueRange struct + Max string + Min string