goconfig

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 4 Imported by: 19

README

goconfig

The package contains little helper functions that can snapshot a struct with exported fields and current values to a config file and reload it. This might be useful to implement functionalities such as stop/resume.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(v interface{}, loadFrom string) error

Load uses the same json taggers but reads from INI for readability

func Save

func Save(v interface{}, saveTo string) error

Save convert to INI for readability

Types

This section is empty.

Jump to

Keyboard shortcuts

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