config

package
v0.0.0-...-f915236 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2011 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

config implements functionality working with configuration file and make it easy to access its properties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config represents configuration file.

var Configurations Config

Configuration parameters parsed from config file and command line parameters.

func Parse

func Parse(filename string) (config *Config, err os.Error)

Parse parses configuration file and returns its representation.

func (*Config) GetString

func (config *Config) GetString(key string) (value string, err os.Error)

GetString returns string value for the given key.

func (*Config) SetString

func (config *Config) SetString(key string, value string) os.Error

SetString sets new value for the configuration item.

Jump to

Keyboard shortcuts

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