utils

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: MPL-2.0 Imports: 9 Imported by: 70

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandHomeDir

func ExpandHomeDir(path string) (string, error)

Expand expands the path to include the home directory if the path is prefixed with `~`. If it isn't prefixed with `~`, the path is returned as-is.

func HelpFromInterface added in v0.11.0

func HelpFromInterface(item interface{}) string

func Home

func Home() (string, error)

Dir returns the home directory for the executing user. An error is returned if a home directory cannot be detected.

func StripColorTags added in v0.11.0

func StripColorTags(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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