Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDirIfNotExists(fs afero.Fs, path string) (err error)
- func FindMainPackagesAndSources(fs afero.Fs, dir string) (map[string][]string, error)
- func GetImportPath(rootPath string) (importPath string, err error)
- func GetPackageName(rootPath string) (string, error)
- func ListExecutableWithPrefix(fs afero.Fs, prefix string) []string
Constants ¶
View Source
const (
// PackageSeparator is a package separator string on protobuf.
PackageSeparator = "."
)
Variables ¶
View Source
var ( BuildContext build.Context GetOSUser getOSUserFunc )
Make visible for testing
Functions ¶
func CreateDirIfNotExists ¶
CreateDirIfNotExists creates a directory if it does not exist.
func FindMainPackagesAndSources ¶ added in v0.1.4
FindMainPackagesAndSources returns go source file names by main package directories.
func GetImportPath ¶
GetImportPath creates the golang package path from the given path.
func GetPackageName ¶ added in v0.3.0
GetPackageName generates the package name of this application from the given path and envs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.