Documentation ¶
Index ¶
- func AddParams(params *types.Tuple, isVariadic bool, customNamedType CustomType) func(*jen.Group)
- func AddTypeList(typeList *types.TypeList, customNamedType CustomType) func(*jen.Group)
- func AddTypeParamsList(typeList *types.TypeParamList, withType bool, customNamedType CustomType) func(*jen.Group)
- func FormatObjectName(obj types.Object) string
- func GetQualCode(typ types.Type, customType CustomType) *jen.Statement
- func InitialIsLower(s string) bool
- func InitialIsUpper(s string) bool
- func InitialToLower(s string) string
- func InitialToUpper(s string) string
- func ParamName(idx int, param *types.Var) string
- func PkgInfoFromPath(srcDir string, mode packages.LoadMode) (*packages.Package, error)
- func TypeNameCode(typeName string) (*jen.Statement, error)
- type CTFunc
- type CustomType
- type Directive
- type Directives
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTypeList ¶
func AddTypeList(typeList *types.TypeList, customNamedType CustomType) func(*jen.Group)
func AddTypeParamsList ¶
func AddTypeParamsList(typeList *types.TypeParamList, withType bool, customNamedType CustomType) func(*jen.Group)
func FormatObjectName ¶
func GetQualCode ¶
func GetQualCode(typ types.Type, customType CustomType) *jen.Statement
func InitialIsLower ¶
func InitialIsUpper ¶
func InitialToLower ¶
InitialToLower converts initial to lower.
func InitialToUpper ¶
InitialToUpper converts initial to upper.
func PkgInfoFromPath ¶
Types ¶
type CTFunc ¶
type CustomType ¶
type Directive ¶
func (Directive) IsListValue ¶
type Directives ¶
func ParseDoc ¶
func ParseDoc(doc *ast.CommentGroup) ([]string, Directives)
func (Directives) IsListValue ¶
func (d Directives) IsListValue(directive string, value string, defVal bool) bool
Click to show internal directories.
Click to hide internal directories.