Discover Packages
github.com/Chris-Greaves/stencil
confighelper
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: May 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Conf encompasses the anonymous json object for a template config.
New will create a new Conf using the contents contain in the file found in "path"
GetAllValues gets all of the overridable variables from the Conf
func (c *Conf ) Object() interface{}
Object Returns the Conf as an anonymous object.
SetValues will take an array of settings to put each one into the Conf. If the setting already exists it will update the value, else it will add the new setting.
Setting is a simple struct to represent a setting in a Conf. This is used when trying to Get or Set values in the Conf.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.