config

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT 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 New

func New(file ...string) *Config

func (*Config) GetBool

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

func (*Config) GetDuration

func (c *Config) GetDuration(path string) time.Duration

func (*Config) GetInt

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

func (*Config) GetInt64

func (c *Config) GetInt64(path string) int64

func (*Config) GetMap

func (c *Config) GetMap(path string) map[string]interface{}

func (*Config) GetMapString

func (c *Config) GetMapString(path string) map[string]string

func (*Config) GetString

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

func (*Config) GetStringSlice

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

func (*Config) GetTime

func (c *Config) GetTime(path string) time.Time

func (*Config) SetDefault

func (c *Config) SetDefault(path string, val interface{}) *Config

Jump to

Keyboard shortcuts

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