config

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJsonConfig

func InitJsonConfig[T any](configFile string, createDefault func(path string) error) (*T, error)

func InitTomlConfig

func InitTomlConfig[T any](configFile string, createDefault func(path string) error) (*T, error)

func LoadEnv added in v0.6.2

func LoadEnv(path ...string) error

LoadEnv loads environment variables from the given files, if they exist. It does NOT override existing environment variables. Use .env for defaults. Environment variable names are case-sensitive.

func OverloadEnv added in v0.6.2

func OverloadEnv(path ...string) error

OverloadEnv loads environment variables from the given files, if they exist. It WILL override existing environment variables. Use this to force specific values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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