helpers

package
v0.0.0-...-8a797ad Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagBinder

type FlagBinder struct {
	Viper   *viper.Viper
	FlagSet *pflag.FlagSet
}

func (*FlagBinder) BindBool

func (f *FlagBinder) BindBool(key string, value bool, usage string)

func (*FlagBinder) BindString

func (f *FlagBinder) BindString(key string, value string, usage string)

func (*FlagBinder) BindStringSlice

func (f *FlagBinder) BindStringSlice(key string, value []string, usage string)

type Set

type Set map[string]interface{}

func (Set) Add

func (s Set) Add(str string)

func (Set) AddFromString

func (s Set) AddFromString(str string, sep string, cutset string)

func (Set) ToSlice

func (s Set) ToSlice() []string

func (Set) ToString

func (s Set) ToString(sep string) string

Jump to

Keyboard shortcuts

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