config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry(k *koanf.Koanf, fs *pflag.FlagSet) *Registry

func (*Registry) Bool

func (r *Registry) Bool(name string, defaultValue bool, help string) func() bool

func (*Registry) BoolP

func (r *Registry) BoolP(name, shorthand string, defaultValue bool, help string) func() bool

func (*Registry) Int

func (r *Registry) Int(name string, defaultValue int, help string) func() int

func (*Registry) IntP

func (r *Registry) IntP(name, shorthand string, defaultValue int, help string) func() int

func (*Registry) String

func (r *Registry) String(name, defaultValue, help string) func() string

func (*Registry) StringP

func (r *Registry) StringP(name, shorthand, defaultValue, help string) func() string

func (*Registry) Strings

func (r *Registry) Strings(name string, defaultValue []string, help string) func() []string

func (*Registry) StringsP

func (r *Registry) StringsP(name, shorthand string, defaultValue []string, help string) func() []string

Jump to

Keyboard shortcuts

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