util

package
v0.0.0-...-68c00f2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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

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

func CurrentUserHomeDir() string

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

func SafeCommandName

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