Documentation
¶
Index ¶
- Variables
- func Resolve(w io.Writer, v ...interface{}) error
- func ResolveGraph(w io.Writer, v ...interface{}) error
- type Field
- type Index
- type Mapper
- type Relation
- type Table
- func (t *Table) MakeGraph() *Table
- func (t *Table) New() *Table
- func (t *Table) Resolve(v interface{}) *Table
- func (t *Table) SetComment(comment string) *Table
- func (t *Table) SetDescription(description string) *Table
- func (t *Table) SetMapper(f Mapper) *Table
- func (t *Table) SetTypeMapper(f Mapper) *Table
- func (t *Table) Write(w io.Writer) *Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // %s分别是多个子图,边样式和边 GraphFormat = `` /* 209-byte string literal not displayed */ EdgeStyleFormat = `edge [ arrowtail=normal, style=dashed, color="#444444" ] ` )
dot脚本
Functions ¶
func ResolveGraph ¶
ResolveGraph 解析多个结构体,生成图脚本,并将它们写到w
Types ¶
type Field ¶
type Field struct { Name string // 名字 Type string // 类型 Nullable bool // 是否可null Primary bool // 是否主键 Description string // 描述 Index // 索引 Relation // 关系 }
Field 字段
Click to show internal directories.
Click to hide internal directories.