cfg

package
v0.0.0-...-a33a8dd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](key string) (t T, ok bool)

func InitCfg

func InitCfg() error

func Store

func Store(key string, value any)

Types

type Config

type Config struct {
	Storage Storage
	// contains filtered or unexported fields
}

type Storage

type Storage interface {
	Store(key string, value any)
	Get(key string) (any, bool)
	Merge(m map[string]any) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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