config

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigHook

type MockConfigHook struct {
	GetStringMock      func(key string) string
	GetBoolMock        func(key string) bool
	GetIntMock         func(key string) int
	GetIntOrElseMock   func(key string, orElse int) int
	BindFlagMock       func(string, *pflag.Flag) error
	GetProfileMock     func() string
	GetStringSlickMock func(key string) []string
	SetStringMock      func(k string, v string)
	SetMock            func(k string, v any)
	GetMock            func(k string) any
	GetPathMock        func() string
}

func (*MockConfigHook) BindFlag

func (m *MockConfigHook) BindFlag(configPath string, f *pflag.Flag) error

func (*MockConfigHook) Get

func (m *MockConfigHook) Get(k string) any

func (*MockConfigHook) GetBool

func (m *MockConfigHook) GetBool(key string) bool

func (*MockConfigHook) GetInt

func (m *MockConfigHook) GetInt(key string) int

func (*MockConfigHook) GetIntOrElse added in v0.0.14

func (m *MockConfigHook) GetIntOrElse(key string, orElse int) int

func (*MockConfigHook) GetPath

func (m *MockConfigHook) GetPath() string

func (*MockConfigHook) GetProfile

func (m *MockConfigHook) GetProfile() string

func (*MockConfigHook) GetString

func (m *MockConfigHook) GetString(key string) string

func (*MockConfigHook) GetStringSlice

func (m *MockConfigHook) GetStringSlice(key string) []string

func (*MockConfigHook) InConfig added in v1.0.0

func (m *MockConfigHook) InConfig(string) bool

func (*MockConfigHook) Set

func (m *MockConfigHook) Set(k string, v any)

func (*MockConfigHook) SetString

func (m *MockConfigHook) SetString(k string, v string)

Jump to

Keyboard shortcuts

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