fallback

package
v0.0.0-...-e1f92a5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](fallback *Fallback, key string) (value T, err error)

func NewProvider

func NewProvider(file string) func() (*Fallback, error)

Types

type Fallback

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

func New

func New(file string) (result *Fallback, err error)

func (*Fallback) Get

func (this *Fallback) Get(key string) (value interface{}, err error)

func (*Fallback) Set

func (this *Fallback) Set(key string, value interface{}) (err error)

Jump to

Keyboard shortcuts

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