config

package
v0.0.0-...-6a16b6f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCfg

func LoadCfg(conf interface{}, fPath string) error

LoadCfg Reads the file on fPath as a YAML format and unmarshals data into conf. c should be the default configuration file In the case that the designated config file does not exist, this function will attempt to create it using conf as a template TODO:

func SaveCfg

func SaveCfg(c interface{}, fPath string) error

SaveCfg Saves the config file c to the file fPath as a YAML file TODO:

Types

This section is empty.

Jump to

Keyboard shortcuts

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