Documentation ¶
Index ¶
- Constants
- func Bytes(key ConfigKey) (value []byte, err error)
- func BytesOrPanic(key ConfigKey) (res []byte)
- func FilePath(key ConfigKey) string
- func Object[T any](key ConfigKey) (res T, err error)
- func ObjectOrPanic[T any](key ConfigKey) (res T)
- func SetConfigLocation(folder string) error
- func String(key ConfigKey) (value string, err error)
- func StringOrPanic(key ConfigKey) (res string)
- type ConfigKey
Constants ¶
View Source
const (
ConfigKeyAppConfig = "app-config"
)
Variables ¶
This section is empty.
Functions ¶
func BytesOrPanic ¶
func ObjectOrPanic ¶
func SetConfigLocation ¶
func StringOrPanic ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.