config

package module
v0.0.0-...-21e168a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2016 License: MIT Imports: 8 Imported by: 3

README

GoDoc Build Status

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:

Documentation

Overview

Package config contains configuration-related parsers using different formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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