Documentation ¶
Index ¶
- func JsonPack(sheet *excels.Sheet, layoutData *LayoutData, tags string) (json []byte, err error)
- type Data
- type Enum
- type Field
- type LayoutData
- type LayoutDepend
- func (this *LayoutDepend) Add(layer []layers.Layer, back int) error
- func (this *LayoutDepend) Begin(name string) error
- func (this *LayoutDepend) Closure() bool
- func (this *LayoutDepend) Depends(name string) (result []string)
- func (this *LayoutDepend) End() error
- func (this *LayoutDepend) Merge(merge *LayoutDepend) error
- type LayoutEnum
- type LayoutType
- func (this *LayoutType) Add(name, note string, field fields.Field, layer []layers.Layer, back int) error
- func (this *LayoutType) Begin(name, excel, sheet string) error
- func (this *LayoutType) Closure() bool
- func (this *LayoutType) End() error
- func (this *LayoutType) FieldNames(name string) (result []string)
- func (this *LayoutType) Fields(name string) (result []*Field)
- func (this *LayoutType) Merge(merge *LayoutType) error
- func (this *LayoutType) Type(name string) *Type
- func (this *LayoutType) TypeNames() (result []string)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Name string // 欄位名稱 Field fields.Field // 欄位類型 Layers []layers.Layer // 階層列表 Back int // 倒退數量 Tag string // 標籤字串 }
Data 布局資料
type Field ¶
type Field struct { Name string // 欄位名稱 Note string // 欄位註解 Field fields.Field // 欄位類型 Alter string // 欄位類型別名 Array bool // 陣列旗標 }
Field 欄位資料
type LayoutData ¶
type LayoutData struct {
// contains filtered or unexported fields
}
LayoutData 資料布局器
func (*LayoutData) Add ¶
func (this *LayoutData) Add(name string, field fields.Field, layer []layers.Layer, back int, tag string) error
Add 新增布局
type LayoutDepend ¶
type LayoutDepend struct {
// contains filtered or unexported fields
}
LayoutDepend 依賴布局器
func (*LayoutDepend) Add ¶
func (this *LayoutDepend) Add(layer []layers.Layer, back int) error
Add 新增依賴
func (*LayoutDepend) Depends ¶
func (this *LayoutDepend) Depends(name string) (result []string)
Depends 取得依賴列表
func (*LayoutDepend) Merge ¶
func (this *LayoutDepend) Merge(merge *LayoutDepend) error
Merge 合併依賴布局器
type LayoutEnum ¶
type LayoutEnum struct {
// contains filtered or unexported fields
}
LayoutEnum 列舉布局器
type LayoutType ¶
type LayoutType struct {
// contains filtered or unexported fields
}
LayoutType 類型布局器
func (*LayoutType) Add ¶
func (this *LayoutType) Add(name, note string, field fields.Field, layer []layers.Layer, back int) error
Add 新增欄位
func (*LayoutType) Begin ¶
func (this *LayoutType) Begin(name, excel, sheet string) error
Begin 開始類型紀錄
func (*LayoutType) FieldNames ¶
func (this *LayoutType) FieldNames(name string) (result []string)
FieldNames 取得類型欄位名稱列表
func (*LayoutType) Fields ¶
func (this *LayoutType) Fields(name string) (result []*Field)
Fields 取得類型欄位列表
func (*LayoutType) TypeNames ¶
func (this *LayoutType) TypeNames() (result []string)
TypeNames 取得類型名稱列表
Click to show internal directories.
Click to hide internal directories.