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" )
View Source
const ( PARAM_NAME = "BuilderGen" DEFAULT_BUILDER_SUFFIX = "_builder.go" BUILD_HEADER = "// Code generated by " + PARAM_NAME + " " BUILD_PACKAGE = "package" )
View Source
const ( KEYWORD_BREAK = "break" KEYWORD_CASE = "case" KEYWORD_CHAN = "chan" KEYWORD_CONST = "const" KEYWORD_CONTINUE = "continue" KEYWORD_DEFAULT = "default" KEYWORD_DEFER = "defer" KEYWORD_ELSE = "else" KEYWORD_FALLTHROUGH = "fallthrough" KEYWORD_FOR = "for" KEYWORD_FUNC = "func" KEYWORD_GO = "go" KEYWORD_GOTO = "goto" KEYWORD_IF = "if" KEYWORD_IMPORT = "import" KEYWORD_INTERFACE = "interface" KEYWORD_MAP = "map" KEYWORD_PACKAGE = "package" KEYWORD_RANGE = "range" KEYWORD_RETURN = "return" KEYWORD_SELECT = "select" KEYWORD_STRUCT = "struct" KEYWORD_SWITCH = "switch" KEYWORD_TYPE = "type" KEYWORD_VAR = "var" )
Variables ¶
View Source
var ( ErrSrcNotFound = errors.New(ErrMsgSrcNotfound) ErrNoStructsFound = errors.New(ErrMsgNoStructsFound) ErrNameNotFound = errors.New(ErrMsgNameNotFound) ErrTypeNotfound = errors.New(ErrMsgTypeNotFound) ErrNotGoFile = errors.New(ErrMsgNotGoFile) )
View Source
var ImportOptions = &imports.Options{ FormatOnly: false, TabIndent: true, Comments: true, }
View Source
var ( Keywords = []string{ KEYWORD_BREAK, KEYWORD_CASE, KEYWORD_CHAN, KEYWORD_CONST, KEYWORD_CONTINUE, KEYWORD_DEFAULT, KEYWORD_DEFER, KEYWORD_ELSE, KEYWORD_FALLTHROUGH, KEYWORD_FOR, KEYWORD_FUNC, KEYWORD_GO, KEYWORD_GOTO, KEYWORD_IF, KEYWORD_IMPORT, KEYWORD_INTERFACE, KEYWORD_MAP, KEYWORD_PACKAGE, KEYWORD_RANGE, KEYWORD_RETURN, KEYWORD_SELECT, KEYWORD_STRUCT, KEYWORD_SWITCH, KEYWORD_TYPE, KEYWORD_VAR, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.