config

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 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 DefaultConfig

func DefaultConfig() *Config

func LoadFile

func LoadFile(fileName string) (*Config, error)

func LoadFiles

func LoadFiles(fileNames []string) (*Config, error)

func (*Config) GetBool

func (config *Config) GetBool(section, key string) bool

func (*Config) GetBoolOrDefault

func (config *Config) GetBoolOrDefault(section, key string, defaultValue bool) bool

func (*Config) GetInt

func (config *Config) GetInt(section, key string) int

func (*Config) GetIntOrDefault

func (config *Config) GetIntOrDefault(section, key string, defaultValue int) int

func (*Config) GetString

func (config *Config) GetString(section, key string) string

func (*Config) GetStringOrDefault

func (config *Config) GetStringOrDefault(section, key string, defaultValue string) string

func (*Config) SetString

func (config *Config) SetString(section, key string, value string)

Jump to

Keyboard shortcuts

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