Documentation ¶
Index ¶
- type FieldInfo
- type ImportSpec
- type PackageInfo
- type StructInfo
- func (structInfo *StructInfo) ColumnNamesMethod() string
- func (structInfo *StructInfo) ColumnTypeSuffix() string
- func (structInfo *StructInfo) EnabledFields() []*FieldInfo
- func (structInfo *StructInfo) SimpleName() string
- func (structInfo *StructInfo) TableName() string
- func (structInfo *StructInfo) TableNameMethod() string
- func (structInfo *StructInfo) TableTypeSuffix() string
- func (structInfo *StructInfo) VarPrefix() string
- type TagInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldInfo ¶ added in v0.7.0
func (*FieldInfo) ColumnName ¶ added in v0.7.0
ColumnName returns column name from field.
func (*FieldInfo) MaxValueFunc ¶ added in v0.7.0
func (*FieldInfo) MinValueFunc ¶ added in v0.7.0
type ImportSpec ¶ added in v0.7.0
type PackageInfo ¶ added in v0.7.0
type PackageInfo struct { CommandArgs []string ImportSpecs []*ImportSpec Structs []*StructInfo // contains filtered or unexported fields }
func Parse ¶
func Parse(directoryPath string) (*PackageInfo, error)
func (*PackageInfo) CommandArguments ¶ added in v0.7.0
func (pkgInfo *PackageInfo) CommandArguments() string
func (*PackageInfo) Emit ¶ added in v0.7.0
func (pkgInfo *PackageInfo) Emit() ([]byte, error)
func (*PackageInfo) PackageIdent ¶ added in v0.7.0
func (pkgInfo *PackageInfo) PackageIdent() string
type StructInfo ¶ added in v0.7.0
type StructInfo struct { Name string Private bool Fields []*FieldInfo // contains filtered or unexported fields }
func (*StructInfo) ColumnNamesMethod ¶ added in v0.7.0
func (structInfo *StructInfo) ColumnNamesMethod() string
func (*StructInfo) ColumnTypeSuffix ¶ added in v0.7.0
func (structInfo *StructInfo) ColumnTypeSuffix() string
func (*StructInfo) EnabledFields ¶ added in v0.7.0
func (structInfo *StructInfo) EnabledFields() []*FieldInfo
func (*StructInfo) SimpleName ¶ added in v0.7.0
func (structInfo *StructInfo) SimpleName() string
SimpleName returns struct type name.
func (*StructInfo) TableName ¶ added in v0.7.0
func (structInfo *StructInfo) TableName() string
TableName returns table name from struct.
func (*StructInfo) TableNameMethod ¶ added in v0.7.0
func (structInfo *StructInfo) TableNameMethod() string
func (*StructInfo) TableTypeSuffix ¶ added in v0.7.0
func (structInfo *StructInfo) TableTypeSuffix() string
func (*StructInfo) VarPrefix ¶ added in v0.7.0
func (structInfo *StructInfo) VarPrefix() string
Click to show internal directories.
Click to hide internal directories.