configmanager

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (config.Config, error)

Load loads the config. Error is only returned if the config file exists but could not be loaded. No error is returned if the config file does not exist.

func LoadFrom

func LoadFrom(file string) (config.Config, error)

LoadFrom loads config from file.

func Save

func Save(c config.Config) error

Save saves the config.

func SaveFromFile

func SaveFromFile(file string) error

SaveFromFile loads configuration from file and save as config.

func SaveToFile

func SaveToFile(c config.Config, file string) error

SaveToFile saves configuration to file.

func Teardown

func Teardown() error

Teardown deletes the config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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