util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPPrefixSchema ...
	HTTPPrefixSchema = "http://"
	// HTTPSPrefixSchema ...
	HTTPSPrefixSchema = "https://"
)

Variables

This section is empty.

Functions

func GetBoolOSEnv

func GetBoolOSEnv(key string) bool

GetBoolOSEnv gets a env variable as a boolean

func GetOSEnv

func GetOSEnv(key, fallback string) string

GetOSEnv gets a env variable

func Must added in v0.3.0

func Must(err error)

Must panics on non-nil errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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