fs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

func CreateDirIfNotExists(fs afero.Fs, path string) (err error)

CreateDirIfNotExists creates a directory if it does not exist.

func FindMainPackagesAndSources added in v0.1.4

func FindMainPackagesAndSources(fs afero.Fs, dir string) (map[string][]string, error)

FindMainPackagesAndSources returns go source file names by main package directories.

func GetImportPath

func GetImportPath(rootPath string) (importPath string, err error)

GetImportPath creates the golang package path from the given path.

func GetPackageName added in v0.3.0

func GetPackageName(rootPath string) (string, error)

GetPackageName generates the package name of this application from the given path and envs.

func ListExecutableWithPrefix added in v0.3.0

func ListExecutableWithPrefix(fs afero.Fs, prefix 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