fs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildContext is a build context object.
	BuildContext build.Context
)

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 LookupRoot

func LookupRoot(fs afero.Fs, dir string) (string, bool)

LookupRoot returns the application's root directory if the current directory is inside of a grapi application.

Types

This section is empty.

Jump to

Keyboard shortcuts

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