cfg

package
v0.0.0-...-89e5e28 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigKeyAppConfig = "app-config"
)

Variables

This section is empty.

Functions

func Bytes

func Bytes(key ConfigKey) (value []byte, err error)

func BytesOrPanic

func BytesOrPanic(key ConfigKey) (res []byte)

func FilePath

func FilePath(key ConfigKey) string

func Object

func Object[T any](key ConfigKey) (res T, err error)

func ObjectOrPanic

func ObjectOrPanic[T any](key ConfigKey) (res T)

func SetConfigLocation

func SetConfigLocation(folder string) error

func String

func String(key ConfigKey) (value string, err error)

func StringOrPanic

func StringOrPanic(key ConfigKey) (res string)

Types

type ConfigKey

type ConfigKey string

Jump to

Keyboard shortcuts

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