config

package
v0.0.0-...-50c2eee Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T interface{}](ctx context.Context, name string) (*T, error)

Get will search for a config with the given name. The name should not include extension.

Will look for .yaml, json - if not found will try an env variable. The name should not include "/".

Types

type FileConfig

type FileConfig struct {
	Base fs.ReadDirFS
}

func (*FileConfig) GetConfig

func (fc *FileConfig) GetConfig(ctx context.Context, name string, t interface{}) error

Jump to

Keyboard shortcuts

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