Documentation ¶
Index ¶
- func AddTypeList(typeList *types.TypeList) func(*jen.Group)
- func AddTypeParamsList(typeList *types.TypeParamList, withType bool) func(*jen.Group)
- func FormatObjectName(obj types.Object) string
- func GetQualCode(typ types.Type) *jen.Statement
- func GetUniqueName(defaultName string, f func(nameExists string) bool) string
- 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, packageName string, mode packages.LoadMode, tags []string) (*packages.Package, error)
- func TypeNameCode(typeName string) (*jen.Statement, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTypeParamsList ¶
func AddTypeParamsList(typeList *types.TypeParamList, withType bool) func(*jen.Group)
func FormatObjectName ¶
func InitialIsLower ¶
func InitialIsUpper ¶
func InitialToLower ¶
InitialToLower converts initial to lower.
func InitialToUpper ¶
InitialToUpper converts initial to upper.
func PkgInfoFromPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.