Documentation ¶
Index ¶
- func FileName(p string) string
- func FileNameFromTypeName(input, output, typename string) string
- func FullPath(rel string) string
- func LoadPackage(path string) *packages.Package
- func LoadPackageString(hello string) *types.Package
- func LowerFirst(s string) string
- func PackageName(prefix, path string) string
- func PackagePath(prefix, path string) string
- func ShortName(name string) string
- func UpperCommonInitialism(s string) string
- func UpperFirst(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileNameFromTypeName ¶
func LoadPackage ¶
func LoadPackageString ¶
func LowerFirst ¶
func PackageName ¶
PackageName returns the base package name.
func PackagePath ¶
PackagePath returns the github package path from any given path, e.g. path/to/github.com/your-repo/your-pkg returns github.com/your-repo/your-pkg If your package is not hosted on github, you may need to override $PKG to set the prefix of your package.
func UpperCommonInitialism ¶
func UpperFirst ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.