config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EnvKey = "APP_ENV"

Variables

This section is empty.

Functions

func Bool

func Bool(key string, def bool) bool

func Duration

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

func Int

func Int(key string, def int) int

func IsProd

func IsProd() bool

func String

func String(key, def string) string

Types

type Env

type Env string
const (
	EnvDev     Env = "dev"
	EnvStaging Env = "staging"
	EnvProd    Env = "prod"
)

func CurrentEnv

func CurrentEnv() Env

Jump to

Keyboard shortcuts

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