config

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 6 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 New

func New(folder string) *Config

func (*Config) Get

func (c *Config) Get(key string) string

func (*Config) GetBool

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

func (*Config) GetBoolSlice

func (c *Config) GetBoolSlice(key string) []bool

func (*Config) GetInt

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

func (*Config) GetIntSlice

func (c *Config) GetIntSlice(key string) []int

func (*Config) GetOrDefaultBool

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

func (*Config) GetOrDefaultInt

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

func (*Config) GetOrDefaultString

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

func (*Config) GetString

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

func (*Config) GetStringSlice

func (c *Config) GetStringSlice(key string) []string

Jump to

Keyboard shortcuts

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