Discover Packages
github.com/basharal/config
package
module
Version:
v0.0.0-...-21e168a
Opens a new window with list of versions in this module.
Published: Feb 7, 2016
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
README
¶
config
Package config provides APIs to parse configuration files in JSON, YAML, or TOML format
Installation and usage
The import path for the package is github.com/basharal/config*.
To install it, run:
go get github.com/basharal/config
API documentation
If opened in a browser, the import path itself leads to the API documentation:
Expand ▾
Collapse ▴
Documentation
¶
Package config contains configuration-related parsers using different formats
func Parse(fileName string , value interface{}) (err error )
Parse parses the file and decodes it into the pass value,
which must be passed as a pointer to some type that
has already been allocated.
Depending on the file extension (.json, .toml, or .yaml), it will
use the right parser
Source Files
¶
Click to show internal directories.
Click to hide internal directories.