Documentation ¶
Index ¶
- Constants
- func SnakeCase(camel string) string
- type ApiElement
- type DeliveElement
- type Dom
- type Element
- type SaveData
- func (savedata *SaveData) ToExcelDeriveElements() []string
- func (savedata *SaveData) ToExcelElements() []string
- func (savedata *SaveData) ToExcelSegments() []string
- func (savedata *SaveData) Write(path string) error
- func (savedata *SaveData) WriteApiElements(path string) error
- func (savedata *SaveData) WriteTypesDdl(path string, schema string) error
- func (savedata *SaveData) WriteViewDeriveElements(path string) error
- func (savedata *SaveData) WriteViewElements(path string) error
- func (savedata *SaveData) WriteViewSegments(path string) error
- type Segment
Constants ¶
View Source
const SHT_DERIVE_ELEMENTS = "別名"
View Source
const SHT_ELEMENTS = "項目"
View Source
const SHT_SEGMENTS = "区分値"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiElement ¶
type ApiElement struct { ApiType string `yaml:"type"` ApiFormat string `yaml:"format,omitempty"` RegEx *string `yaml:"pattern,omitempty"` Enum []string `yaml:"enum,omitempty"` MinDigits *int `yaml:"minLength,omitempty"` MaxDigits *int `yaml:"maxLength,omitempty"` MinValue *int `yaml:"minimum,omitempty"` MaxValue *int `yaml:"maximum,omitempty"` Description string `yaml:"description"` Example string `yaml:"example"` }
type DeliveElement ¶
type Element ¶
type Element struct { NameJp string `yaml:"name_jp"` NameEn string `yaml:"name_en"` Domain Dom `yaml:"domain"` RegEx *string `yaml:"reg_ex"` MinDigits *int `yaml:"min_digits"` MaxDigits *int `yaml:"max_digits"` MinValue *int `yaml:"min_value"` MaxValue *int `yaml:"max_value"` Example string `yaml:"example"` Description string `yaml:"description"` }
type SaveData ¶
type SaveData struct { DataType string `yaml:"data_type"` Version string `yaml:"version"` CreateAt time.Time `yaml:"create_at"` Elements []Element `yaml:"elements"` DeliveElements []DeliveElement `yaml:"delive_elements"` Segments []Segment `yaml:"segments"` }
func (*SaveData) ToExcelDeriveElements ¶
toExcel(sht-derive-elements)
func (*SaveData) ToExcelElements ¶
toExcel(sht-elements)
func (*SaveData) ToExcelSegments ¶
toExcel(sht-derive-elements)
func (*SaveData) WriteApiElements ¶
api-elementsの書き込み
func (*SaveData) WriteTypesDdl ¶
types-ddlの書き込み
func (*SaveData) WriteViewDeriveElements ¶
derive-elements-viewの書き込み
func (*SaveData) WriteViewElements ¶
elements-viewの書き込み
func (*SaveData) WriteViewSegments ¶
derive-elements-viewの書き込み
Click to show internal directories.
Click to hide internal directories.