commons

package module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 3 Imported by: 19

README

Commons

🚧 work in progress

Documentation

Index

Constants

View Source
const FieldSeparator = ":"
View Source
const StrHeadersSeparator = string(rune(179))
View Source
const StrSeparator = string(rune(178))

Variables

This section is empty.

Functions

func CapsuleVersion

func CapsuleVersion() string

func CreateMapFromSlice

func CreateMapFromSlice(strSlice []string, separator string) map[string]string

func CreateSliceFromMap

func CreateSliceFromMap(strMap map[string]string) []string

func CreateSliceFromString

func CreateSliceFromString(str string, separator string) []string

func CreateStringError

func CreateStringError(message string, code int) string

CreateStringError : to not display an error code at the end of the error message, code == 0

func CreateStringFromSlice

func CreateStringFromSlice(strSlice []string, separator string) string

func GetEnv

func GetEnv(key, fallback string) string

func GetErrorStringInfo

func GetErrorStringInfo(str string) (string, int)

func GetExitCode

func GetExitCode() int

func GetExitError

func GetExitError() string

func IsErrorString

func IsErrorString(str string) bool

func SetExitCode

func SetExitCode(code int)

func SetExitError

func SetExitError(errMsg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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