util

package
v0.0.0-...-a551046 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntOrDefault

func GetIntOrDefault(name string, defaultV int) int

GetIntOrDefault check if a env variable exists for the given name. If so it tries to convert the string into an integer value, if the system can do that it will return the converted integer value if not the system will return the given default integer value

func GetStringOrDefault

func GetStringOrDefault(name, defaultV string) string

GetStringOrDefault check if a env variable exists for the given name. If so it returns the string value of the env var. If not it will return the given default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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