tomlcfg

package
v0.0.0-alpha.0...-306d899 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tomlcfg provides helper functions to load and save toml config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

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

Load receives required title string and struct interface and builds file name path from title and returns error code after attempting to fill interface.

func MustLoad

func MustLoad(title string, v interface{})

Load receives required title string and struct interface and builds file name path from title and after attempting to fill interface panics on failure.

func MustSave

func MustSave(title string, v interface{})

Save receives required title string and struct interface and builds file name path from title and after attempting to save interface will panic on failure.

func Save

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

Save receives required title string and struct interface and builds file name path from title and returns error code after attempting to save interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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