util

package
v0.0.0-...-ed8d817 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SrcPaths []string

SrcPaths holds the $GOPATH source paths.

Functions

func GitRoot

func GitRoot(path string) (string, error)

GitRoot searches for the git root directory for the path.

func Ignore

func Ignore()

Ignore is here to placate the linter when we really, truly, want to ignore an error.

func IsDir

func IsDir(path string) bool

IsDir returns true if the path is a directory.

func IsRoot

func IsRoot(path string) bool

IsRoot returns true if the path is a root directory.

func MustGitRootOrDir

func MustGitRootOrDir(path string) string

MustGitRootOrDir returns the git root or the directory if it doesn't have one.

func StripPrefix

func StripPrefix(path string, prefixes []string) string

StripPrefix strips the first prefix that matches from the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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