cmd

package
v0.2.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVarDuration

func GetEnvVarDuration(name string, defValue time.Duration) time.Duration

GetEnvVarDuration returns a time.Duration value of an environmental variable specified by name. Returns defValue if the variable is not defined, or in case of parsing error.

func GetEnvVarString

func GetEnvVarString(name string, defValue string) string

GetEnvVarString returns a string value of an environmental variable speficied by name. Returns defValue if the variable is empty (e.g. not defined).

func GetEnvVarUInt

func GetEnvVarUInt(name string, defValue uint64) uint64

GetEnvVarUInt returns an decimal uint64 value of an environmental variable specified by name. Returns defValue when the variable is empty (e.g. not defined), or in case of parsing error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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