generate

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 GetBsonName

func GetBsonName(fieldName string, field *ast.Field) (string, error)

func GetFieldType

func GetFieldType(fileContent string, field *ast.Field) string

func GetGoArch

func GetGoArch() string

func GetGoFile

func GetGoFile() string

func GetGoLine

func GetGoLine() string

func GetGoOS

func GetGoOS() string

func GetGoPackage

func GetGoPackage() string

func GetNodeStructName

func GetNodeStructName(node ast.Node) string

func ParseStruct

func ParseStruct(filename string, src []byte) (structFieldListMap map[string][]*ast.Field, structDocumentListMap map[string][]string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL