config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) (bool, bool, error)

func GetBoolDefault

func GetBoolDefault(key string, defaultValue bool) bool

func GetConfig

func GetConfig() (models.Config, error)

func GetInt

func GetInt(key string) (int, bool, error)

func GetIntDefault

func GetIntDefault(key string, defaultValue int) int

func GetRequiredString

func GetRequiredString(key string) (string, error)

func GetString

func GetString(key string) (string, bool)

func GetStringDefault

func GetStringDefault(key, defaultValue string) string

func IsProduction

func IsProduction() bool

func LoadDotEnv

func LoadDotEnv()

func SaveConfig

func SaveConfig(c *models.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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