cfg

package module
v0.0.0-...-3b64709 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2016 License: MIT Imports: 4 Imported by: 13 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址