util

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AppendToStringMap added in v0.6.0

func AppendToStringMap(stringMap map[string]string, key, value string) map[string]string

AppendToStringMap adds the given key and value to the map. If map is nil, create it first

func FromMapToJavaProperties added in v0.6.0

func FromMapToJavaProperties(theMap map[string]string) string

FromMapToJavaProperties converts a given map to a Java properties file string. Example: # given myMap[string]string = { "key1": "value1", "key2": "value2" } # you got back:

key1: value1
key2: value2

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