util

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTypeList

func AddTypeList(typeList *types.TypeList) func(*jen.Group)

func AddTypeParamsList

func AddTypeParamsList(typeList *types.TypeParamList, withType bool) func(*jen.Group)

func FormatObjectName

func FormatObjectName(obj types.Object) string

func GetQualCode

func GetQualCode(typ types.Type) *jen.Statement

func GetUniqueName

func GetUniqueName(defaultName string, f func(nameExists string) bool) string

func InitialIsLower

func InitialIsLower(s string) bool

func InitialIsUpper

func InitialIsUpper(s string) bool

func InitialToLower

func InitialToLower(s string) string

InitialToLower converts initial to lower.

func InitialToUpper

func InitialToUpper(s string) string

InitialToUpper converts initial to upper.

func ParamName

func ParamName(idx int, param *types.Var) string

func PkgInfoFromPath

func PkgInfoFromPath(srcDir string, packageName string, mode packages.LoadMode, tags []string) (*packages.Package, error)

func TypeNameCode

func TypeNameCode(typeName string) (*jen.Statement, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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