Documentation ¶
Index ¶
- func CreateMd(sysDir string, bffName string, impls []string) error
- func StdoutExit(exitCode int, format string, args ...interface{})
- func String(xt XType) string
- func SystemBaseDir() (sysDir string, systemName string, err error)
- func ValueIg(xt XType) interface{}
- type MarkdownProperty
- type MarkdownTable
- type MarkdownTableColumn
- type XArray
- type XBase
- type XField
- type XFieldComment
- type XInterfaceNode
- type XMap
- type XPoint
- type XStruct
- type XType
- type XTypeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StdoutExit ¶
func SystemBaseDir ¶
Types ¶
type MarkdownProperty ¶
type MarkdownProperty struct { Login string Page []string Zh string URI string RequestTable []MarkdownTable RequestJson interface{} // 请求参数示例 ResponseTable []MarkdownTable ResponseJson interface{} // 应答参数示例 }
type MarkdownTable ¶
type MarkdownTable struct { Title string Columns []MarkdownTableColumn }
type MarkdownTableColumn ¶
type XBase ¶
type XBase struct {
BName string
}
buildin type (exclude map slice array etc.) or user define struct type
type XField ¶
type XField struct { FName string Type XType Comment XFieldComment }
type XFieldComment ¶
type XInterfaceNode ¶
type XInterfaceNode struct { ZhName string Login string Uri string Page string Desc string Request *XTypeSpec Response *XTypeSpec }
func (*XInterfaceNode) ToMarkDown ¶
func (in *XInterfaceNode) ToMarkDown() *MarkdownProperty
type XStruct ¶
type XStruct struct {
Fields []*XField
}
func (*XStruct) ToMarkdownTable ¶
func (xs *XStruct) ToMarkdownTable() []MarkdownTableColumn
Click to show internal directories.
Click to hide internal directories.