cfg

package module
v0.0.0-...-294fee4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: Apache-2.0 Imports: 2 Imported by: 1

README

go-cfg

License Build Status Coverage Status Go Report Card

Project

Package for configuration.

Inspired on golang/context but for a different purpose.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	// Value returns the value for the key associated with this configuration, otherwise nil.
	Value(key interface{}) interface{}
}

Config configuration interface.

func Root

func Root() Config

Root returns the configuration root.

func WithValue

func WithValue(parent Config, k, v interface{}) Config

WithValue returns a new configuration with a new key/value pair added.

Jump to

Keyboard shortcuts

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