package
0.0.0-20191208041911-dd73c42ba669
Repository: https://github.com/zahfox/gourd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CborDecoder will decode data from a cbor format.
CborEncoder will encode data in cbor format.
EnvStr returns a human readable form of value for the current environment.
Exec provides a thin wrapper over exec.Command.
Exists returns whether the given file or directory exists.
GetEnv finds the type of runtime environment that is currently active.
GetGourdID returns the IDs for the gourd user and group.
HomeDir returns the filesystem path to the current user's $HOME directory.
LogDebug logs messages at the debug level.
LogDebugf logs messages at the debug level.
LogError logs messages at the error level.
LogErrorf logs messages at the error level.
LogFatal logs messages at the error level.
LogFatalf logs messages at the error level.
LogInfo logs messages at the info level.
LogInfof logs messages at the info level.
LogTrace logs messages at the trace level.
LogTracef logs messages at the trace level.
LogWarn logs messages at the warning level.
LogWarnf logs messages at the warning level.
MkdirIfNotExist is like mkdir -p.
Os returns OsInfo about the host machine.
ReadJSON decodes JSON formatted data from a path into a data structure.
SetupLogging is used to configure the primary loggers.
UserCanExec checks to see if a file can be executed by the current $USER.
Username returns the username of the user that owns the running process.
WriteJSON saves a data structure to a path in JSON format.

# Constants

DebugEnv is a debugging Environment.
DevEnv is a development Environment.
FEINSFPERM means the active user has insufficient permissions for the requested action on the file.
FENOEXIST means a file or directory does not exist.
FENONE means there is no file error.
ProdEnv is a production Environment.
UnknownEnv Environment.

# Structs

GourdID holds the system's IDs for the gourd group and user.
OsInfo represents data about the host machine's operating system.

# Type aliases

Env is an integer that represents a particular Linux distribution.
FileError is used to tell the difference between different kind of file errors.