config

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig[T any](defaultConfig T, configFile string) (T, error)

GetConfig reads the configuration file

func MergeConfig

func MergeConfig(config any, flatConfig map[string]any) error

MergeConfig merges configuration fields expressed as a flat map. Nested fileds are written as "Logging.Level".

func SaveConfig

func SaveConfig[T any](config T, configFile string) error

SaveConfig saves the configuration file

Types

This section is empty.

Jump to

Keyboard shortcuts

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