pos

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: ISC Imports: 9 Imported by: 5

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 Exit

func Exit(code int, err error)

Exit terminate the command echoing to stderr returning status code

func Exit0

func Exit0()

Exit0 terminates the process successfully

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 HomeDir

func HomeDir(relPaths string) (dir string)

HomeDir creates levels of directories in users’s home

func OsExit

func OsExit(code int)

OsExit does os.Exit

func ShortHostname

func ShortHostname() (host string)

ShortHostname gets hostname without domain part

func UserHomeDir

func UserHomeDir() (homeDir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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