cfg

package
v0.0.0-...-95d107b Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

README

cfg

A configuration file parser library for Go / Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filename string, dest map[string]string) error

Load adds or updates entries in an existing map with string keys and string values using a configuration file.

The filename paramter indicates the configuration file to load ... the dest parameter is the map that will be updated.

The configuration file entries should be constructed in key=value syntax. A # symbol at the beginning of a line indicates a comment. Blank lines are ignored.

func LoadNewMap

func LoadNewMap(filename string) (map[string]string, error)

LoadNewMap creates and returns a new map reading filename parameter

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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