cobbles

package module
v0.0.0-...-7d610b6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2014 License: MIT Imports: 4 Imported by: 0

README

cobbles

Build Status

Multidimensional Configuration for Golang

Testing

The following should all be executed from the cobbles directory $GOPATH/src/github.com/ricallinson/cobbles/.

Install
go get github.com/ricallinson/cobbles
Run
go test
Generate Code Coverage
go test -cover

To view the coverage run;

go test -coverprofile=coverage.out
go tool cover -html=coverage.out

Documentation

Index

Constants

View Source
const (
	CONTEXT_SETTER    = "="
	CONTEXT_SEPARATOR = ","
	DEFAULT           = "*"
	SEPARATOR         = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

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

func New

func New(dirpath string) *Bundle

Loads the given directory and returns a new Bundle.

func (*Bundle) Read

func (this *Bundle) Read(config interface{}, c ...string)

Reads the configuration for the given context into the given configuration interface.

Jump to

Keyboard shortcuts

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