Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrMsgSrcNotfound = "source file is required" ErrMsgNoStructsFound = "source file has no structs" ErrMsgNameNotFound = "name is required" ErrMsgTypeNotFound = "type not found for field" ErrMsgNotGoFile = "source is not a valid go file" ErrMsgInvalidStruct = "invalid struct type" )
View Source
const ( PARAM_NAME = "BuilderGen" DEFAULT_BUILDER_SUFFIX = "_builder.go" BUILD_HEADER = "// Code generated by " + PARAM_NAME + " v0.0.4" BUILD_PACKAGE = "package" )
View Source
const ( KEYWORD_GO = "go" KEYWORD_IF = "if" KEYWORD_FOR = "for" KEYWORD_MAP = "map" KEYWORD_VAR = "var" KEYWORD_CASE = "case" KEYWORD_CHAN = "chan" KEYWORD_ELSE = "else" KEYWORD_FUNC = "func" KEYWORD_GOTO = "goto" KEYWORD_TYPE = "type" KEYWORD_BREAK = "break" KEYWORD_CONST = "const" KEYWORD_DEFER = "defer" KEYWORD_RANGE = "range" KEYWORD_RETURN = "return" KEYWORD_SELECT = "select" KEYWORD_STRUCT = "struct" KEYWORD_SWITCH = "switch" KEYWORD_IMPORT = "import" KEYWORD_DEFAULT = "default" KEYWORD_PACKAGE = "package" KEYWORD_CONTINUE = "continue" KEYWORD_INTERFACE = "interface" KEYWORD_FALLTHROUGH = "fallthrough" HASH_IDX_MOD = 73 )
Variables ¶
View Source
var ( ErrSrcNotFound = errors.New(ErrMsgSrcNotfound) ErrNoStructsFound = errors.New(ErrMsgNoStructsFound) ErrNameNotFound = errors.New(ErrMsgNameNotFound) ErrTypeNotfound = errors.New(ErrMsgTypeNotFound) ErrNotGoFile = errors.New(ErrMsgNotGoFile) ErrInvalidStructType = errors.New(ErrMsgInvalidStruct) )
View Source
var ( Keywords = [25]string{ KEYWORD_GO, KEYWORD_IF, KEYWORD_FOR, KEYWORD_MAP, KEYWORD_VAR, KEYWORD_CASE, KEYWORD_CHAN, KEYWORD_ELSE, KEYWORD_FUNC, KEYWORD_GOTO, KEYWORD_TYPE, KEYWORD_BREAK, KEYWORD_CONST, KEYWORD_DEFER, KEYWORD_RANGE, KEYWORD_RETURN, KEYWORD_SELECT, KEYWORD_STRUCT, KEYWORD_SWITCH, KEYWORD_IMPORT, KEYWORD_DEFAULT, KEYWORD_PACKAGE, KEYWORD_CONTINUE, KEYWORD_INTERFACE, KEYWORD_FALLTHROUGH, } KwHashMap = [HASH_IDX_MOD]string{"", "switch", "", "goto", "", "", "break", "defer", "", "", "import", "default", "type", "", "range", "return", "fallthrough", "", "", "", "struct", "", "", "", "", "", "map", "", "", "", "", "", "", "", "", "for", "", "var", "", "", "const", "", "", "", "", "chan", "", "case", "", "", "", "", "", "", "", "", "select", "", "", "package", "else", "if", "", "func", "", "", "continue", "", "go", "interface", "", "", ""} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.