cmdconfig

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(k string) any

func GetBool

func GetBool(k string) bool

func GetInt

func GetInt(k string) int

func GetString

func GetString(k string) string

func GetStringSlice

func GetStringSlice(k string) []string

func IsSet

func IsSet(k string) bool

func Set

func Set(k string, v any)

Types

type Provider

type Provider interface {
	Get(key string) any
	GetString(key string) string
	GetStringSlice(key string) []string
	GetInt(key string) int
	GetBool(key string) bool
	Set(key string, value any)
	IsSet(key string) bool
}
var DefaultProvider Provider = &defaultConfigProvider{
	data: make(map[string]any),
}

Jump to

Keyboard shortcuts

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