Documentation ¶
Overview ¶
Package parlos provides simplified functions related to the os package
Index ¶
Constants ¶
View Source
const (
StatusCodeUsage = 2
)
Variables ¶
This section is empty.
Functions ¶
func Exit1 ¶
func Exit1(err error)
Exit1 terminate the command echoing a failure to stderr and returning status code 1
func Exit1OneLine ¶
func Exit1OneLine(err error)
Exit1OneLine terminate the command echoing to stderr returning status code 1
func ShortHostname ¶
func ShortHostname() (host string)
ShortHostname gets hostname without domain part
func UserHomeDir ¶
func UserHomeDir() (homeDir string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.