Help us shape the future of Go! Take the 2026 Go Developer Survey

configuration

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

func Flatten(prefix string, src map[string]interface{}, dest map[string]interface{})

Types

type Configuration

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

func New

func New() *Configuration

func NewWithRequestOptions

func NewWithRequestOptions(options map[string]interface{}) *Configuration

func (*Configuration) Get

func (c *Configuration) Get(key string) (interface{}, bool)

func (*Configuration) GetBool

func (c *Configuration) GetBool(key ...string) bool

func (*Configuration) GetBoolWithDefault

func (c *Configuration) GetBoolWithDefault(key string, dflt bool) bool

func (*Configuration) GetInt

func (c *Configuration) GetInt(key string) (int, bool)

func (*Configuration) GetSliceMapString

func (c *Configuration) GetSliceMapString(key string) ([]map[string]string, bool)

func (*Configuration) GetString

func (c *Configuration) GetString(key string) (string, bool)

func (*Configuration) GetStringOrDefault

func (c *Configuration) GetStringOrDefault(key ...string) string

TODO: rename this func

func (*Configuration) GetStringSlice

func (c *Configuration) GetStringSlice(key string) ([]string, bool)

Jump to

Keyboard shortcuts

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