Documentation ¶
Index ¶
- Constants
- func CopyFile(sourceFile, destFile string)
- func DirExists(dir string) bool
- func FileExists(file string) bool
- func GetModuleRoot() string
- func GetModuleRootForPath(p string) string
- func GetWorkingDir() string
- func GetWorkspaceRoot() string
- func ReadFile(filePath string) []byte
- func RemoveDir(p string)
- func WalkSymlink(root string, walkFn filepath.WalkFunc) error
- func WriteFile(filePath string, data []byte)
Constants ¶
View Source
const DepsDirName = "DEPS"
DepsDirName is directory that dependencies are stored in.
View Source
const DirMode = 0775
DirMode is the default FileMode used when creating directories.
View Source
const FileMode = 0664
FileMode is the default FileMode used when creating files.
View Source
const ModuleFileName = "MODULE"
ModuleFileName is the name of the file describing each module.
Variables ¶
This section is empty.
Functions ¶
func GetModuleRoot ¶
func GetModuleRoot() string
GetModuleRoot returns the root directory of the current module.
func GetModuleRootForPath ¶
func GetWorkingDir ¶
func GetWorkingDir() string
GetWorkingDir returns the current working directory.
func GetWorkspaceRoot ¶
func GetWorkspaceRoot() string
GetWorkspaceRoot returns the root directory of the current workspace (i.e., top-level module).
func WalkSymlink ¶
WalkSymlink works like filepath.Walk but also accepts symbolic links as `root`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.