Documentation
¶
Index ¶
- func Parse(s string, wr io.Writer) error
- type ColumnValueType
- type StructCreator
- func (c *StructCreator) Create() *ast.GenDecl
- func (c *StructCreator) Enter(in ast.Node) (ast.Node, bool)
- func (c *StructCreator) Leave(in ast.Node) (ast.Node, bool)
- func (c *StructCreator) PkFunc() *ast.FuncDecl
- func (c *StructCreator) StructName() string
- func (c *StructCreator) TableFunc() *ast.FuncDecl
- type StructField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnValueType ¶
type ColumnValueType byte
func (ColumnValueType) String ¶
func (cv ColumnValueType) String() string
type StructCreator ¶
type StructCreator struct { PackageName string TableName string Pk string Fields []StructField HasTime bool }
func New ¶
func New() *StructCreator
func (*StructCreator) Create ¶
func (c *StructCreator) Create() *ast.GenDecl
func (*StructCreator) PkFunc ¶
func (c *StructCreator) PkFunc() *ast.FuncDecl
func (*StructCreator) StructName ¶
func (c *StructCreator) StructName() string
func (*StructCreator) TableFunc ¶
func (c *StructCreator) TableFunc() *ast.FuncDecl
Click to show internal directories.
Click to hide internal directories.