config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func Load

func Load(configPath string) (*Config, error)

func MustLoad

func MustLoad(configPath string) *Config

func (*Config) GetBool

func (c *Config) GetBool(key string, defaultValue bool) bool

func (*Config) GetDuration

func (c *Config) GetDuration(key string, defaultValue time.Duration) time.Duration

func (*Config) GetInt

func (c *Config) GetInt(key string, defaultValue int) int

func (*Config) GetString

func (c *Config) GetString(key string, defaultValue string) string

func (*Config) Parse

func (c *Config) Parse(v any) error

Jump to

Keyboard shortcuts

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