fs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 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

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

func GetPackageName(rootPath string) (string, error)

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

func ListExecutableWithPrefix

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