util

package
v0.2.5 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: 13 modules, 40 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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