util

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AncestorDirs added in v0.1.0

func AncestorDirs(p string, self bool) []string

AncestorDirs returns a list of p's ancestor directories (optionally including itself) excluding the root ("." or "/")).

func CurrentUserHomeDir added in v0.0.16

func CurrentUserHomeDir() string

CurrentUserHomeDir tries to get the current user's home directory in a cross-platform manner.

func SafeCommandName added in v0.1.0

func SafeCommandName(command string) string

Makes command name safe for shell script (and for makefiles). For example, Cygwin does not like when you trying to execute C:/foo/bar.exe arguments so we replacing first : with \: there. On Unix/Darwin there is no need to perform replacements

Types

type Errors

type Errors []error

func (Errors) Error

func (e Errors) Error() string

Jump to

Keyboard shortcuts

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