util

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitGently

func ExitGently(a ...interface{})

Sugar

func GetTarget

func GetTarget(args []string, defaultTarget string) string

If the user specified a target, use that, else use the command's default target

func ParseURI

func ParseURI(input string) (string, string)

Given a URI, return the scheme name separate from everything else

See: https://en.wikipedia.org/wiki/URI_scheme#Generic_syntax

func SanePath

func SanePath(loc string) string

Return the absolute path and evaluate for symlinks. Where we should call this (rather than just .Abs) is debatable.

Types

type HrootError added in v0.5.1

type HrootError struct {
	// contains filtered or unexported fields
}

func (HrootError) Cause added in v0.5.1

func (err HrootError) Cause() error

Returns nested error

func (HrootError) Error added in v0.5.1

func (err HrootError) Error() string

Golang stdlib func

Jump to

Keyboard shortcuts

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