README ¶ Configuration file parser Only support JSON format. Install go get github.com/zhgo/config Copyright Copyright 2015 The zhgo Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func WorkingDir() string type Config func NewConfig(p string) *Config func (c *Config) Load(p string) error func (c *Config) Parse(j interface{}) error func (c *Config) Read(str string) error func (c *Config) Replace(r map[string]string) *Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WorkingDir ¶ func WorkingDir() string Types ¶ type Config ¶ type Config struct { // contains filtered or unexported fields } func NewConfig ¶ func NewConfig(p string) *Config New Config func (*Config) Load ¶ func (c *Config) Load(p string) error Load configuration file func (*Config) Parse ¶ func (c *Config) Parse(j interface{}) error Configuration parsing func (*Config) Read ¶ func (c *Config) Read(str string) error Read from string func (*Config) Replace ¶ func (c *Config) Replace(r map[string]string) *Config Source Files ¶ View all Source files config.go init.go working_dir.go Click to show internal directories. Click to hide internal directories.