Documentation
¶
Index ¶
- Constants
- Variables
- func GetBsonName(fieldName string, field *ast.Field) (string, error)
- func GetFieldType(fileContent string, field *ast.Field) string
- func GetGoArch() string
- func GetGoFile() string
- func GetGoLine() string
- func GetGoOS() string
- func GetGoPackage() string
- func GetNodeStructName(node ast.Node) string
- func ParseStruct(filename string, src []byte) (structFieldListMap map[string][]*ast.Field, ...)
Constants ¶
View Source
const ( SoftDelete = "soft_delete" SoftDeleteAt = "soft_delete_at" UpdateAt = "update_at" CreateAt = "create_at" UniqueIndex = "unique_index" )
Variables ¶
View Source
var ParseBasic = `` /* 3551-byte string literal not displayed */
View Source
var ParseSoftDelete = `` /* 442-byte string literal not displayed */
View Source
var UniqueIndexParse = `` /* 571-byte string literal not displayed */
Functions ¶
func GetGoPackage ¶
func GetGoPackage() string
func GetNodeStructName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.