configutil

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetDefault

type SetDefault interface {
	SetDefault(key string, value any)
}

SetDefault is an interface to abstract setting Viper defaults. (e.g. Allows adding a key prefix to every call to SetDefault when used with SetDefaultFunc.)

type SetDefaultFunc

type SetDefaultFunc func(key string, value any)

SetDefaultFunc implements SetDefault.

func (SetDefaultFunc) SetDefault

func (f SetDefaultFunc) SetDefault(key string, value any)

See SetDefault interface.

Jump to

Keyboard shortcuts

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