cli

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 2 Imported by: 6

Documentation

Overview

Package cli implements various reusable utility functions for command-line interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

CheckErr panics if err is not nil

func GetEnv

func GetEnv(key string, defaultValue string) string

GetEnv returns the value of the environment variable named by key, or defaultValue if the environment variable doesn't exist

func GetEnvInt

func GetEnvInt(key string, defaultValue int) int

GetEnvInt returns the value of the environment variable named by key, or defaultValue if the environment variable doesn't exist or is not a valid integer

Types

This section is empty.

Jump to

Keyboard shortcuts

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