env

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APP_ENV = "APP_ENV"

Variables

View Source
var Module = fx.Invoke(
	useEnvironment,
)

Functions

func Bool

func Bool(key string) bool

func BoolWithDefault

func BoolWithDefault(key string, defaultValue bool) bool

func GetEnvironment

func GetEnvironment() string

func Int

func Int(key string) int

func IntWithDefault

func IntWithDefault(key string, defaultValue int) int

func IsDevelopment

func IsDevelopment() bool

func String

func String(key string) string

func StringWithDefault

func StringWithDefault(key string, defaultValue string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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