util

package
v0.0.0-...-ae78d30 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvList

func EnvList(env map[string]string) []string

func ErrExitF

func ErrExitF(code int, format string, a ...any)

ErrExitF writes a formatted error message to the standard error and exits with the provided exit code

func IsEmpty

func IsEmpty[T any](a []T) bool

func MergeVars

func MergeVars(v1 map[string]string, v2 map[string]string) map[string]string

func SplitArgs

func SplitArgs(args []string, sep string) ([]string, []string)

func WarnExit

func WarnExit(message string)

WarnExit writes a message to the standard error and exits with exit code 0

func WarnExitF

func WarnExitF(format string, a ...any)

WarnExitF writes a formatted error message to the standard error and exits with exit code 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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