envar

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(def bool, _var string) bool

Get a boolean environment variable

func GetInt

func GetInt(def int, _var string) int

Get an integer environment variable

func GetInt64 added in v0.0.3

func GetInt64(def int64, _var string) int64

func GetStr

func GetStr(def string, _var string) string

Get a string environment variable

func GetTime

func GetTime(def time.Time, _var string) time.Time

Get a time environment variable

func SetBool

func SetBool(name string, def bool, description, _var string) bool

Set a boolean environment variable

func SetInt

func SetInt(name string, def int, description, _var string) int

Set an integer environment variable

func SetStr

func SetStr(name, def, description, _var string) string

Set a string environment variable

func SetTime

func SetTime(name string, def time.Time, description, _var string) time.Time

Set a time environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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