env

package
v0.0.0-...-d988ceb Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, initial bool) bool

Bool returns the env boolean value if the key exists. Otherwise, returns initial value.

func Duration

func Duration(key string, initial time.Duration) time.Duration

Duration returns the env duration value if the key exists. Otherwise, returns initial value.

func Int

func Int(key string, initial int) int

Int returns the env integer value if the key exists. Otherwise, returns initial value.

func String

func String(key, initial string) string

String returns the env string value if the key exists. Otherwise, returns initial value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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