loader

package
v0.0.0-...-849e097 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileName

func FileName(p string) string

func FileNameFromTypeName

func FileNameFromTypeName(input, output, typename string) string

func FullPath

func FullPath(rel string) string

FullPath returns the full path to the package, relative to the caller.

func LoadPackage

func LoadPackage(path string) *packages.Package

func LoadPackageString

func LoadPackageString(hello string) *types.Package

func LowerFirst

func LowerFirst(s string) string

func PackageName

func PackageName(prefix, path string) string

PackageName returns the base package name.

func PackagePath

func PackagePath(prefix, path string) string

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 ShortName

func ShortName(name string) string

func UpperCommonInitialism

func UpperCommonInitialism(s string) string

func UpperFirst

func UpperFirst(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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