config

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFlagSet

func BindFlagSet(set *pflag.FlagSet)

func GetBool

func GetBool(key string) bool

func GetDuration

func GetDuration(key string) time.Duration

func GetString

func GetString(key string) string

Types

type Config

type Config interface {
	BindFlags(set *pflag.FlagSet)
	GetString(key string) string
	GetBool(key string) bool
	GetDuration(key string) time.Duration
}

func NewConfig

func NewConfig() Config

Jump to

Keyboard shortcuts

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