goCfgMgr

package module
v0.0.0-...-f435806 Latest Latest
Warning

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

Go to latest
Published: May 19, 2014 License: LGPL-3.0 Imports: 4 Imported by: 6

README

goCfgMgr

A Json config manager written by Golang.

Usage

go get github.com/reckhou/goCfgMgr

In code:

import "github.com/reckhou/goCfgMgr"

The config is a json format text file including 3 sections by default:basic, projects, additional.

For example, if you want to get Port param under basic section, you might use this code:

goCfgMgr.Get("basic", "Port").(string)

For more usage, just read the code, it's simple & elegant(for a noob gopher). :)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(field string, keys interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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