config

package
v0.0.0-...-4335edd Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 8 Imported by: 0

README

config

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoReaderConfiguration

func DoReaderConfiguration(ctx context.Context) (func(), error)

func LoadConfigWithFile

func LoadConfigWithFile(filename string, paths ...string) error

func LoadConfigWithFlag

func LoadConfigWithFlag(flagName string) error

func RegisterConfigureReaders

func RegisterConfigureReaders(fns ...ConfigureReader)

func ViperGet

func ViperGet[T any](key string, defaults ...T) T

Types

type ConfigureReader

type ConfigureReader func(ctx context.Context) (func(), error)

Jump to

Keyboard shortcuts

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