consts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 2 Imported by: 0

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,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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