config

package
v0.0.0-...-7a09d4d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

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

Conf is a collection of config key/value pairs

func New

func New(conf map[string]string) *Conf

New returns a conf collection from the passed argument.

func NewFromJSON

func NewFromJSON(data []byte) (*Conf, error)

NewFromJSON returns a conf collection, parsed from the passed JSON blob.

func (*Conf) GetString

func (c *Conf) GetString(key string) string

GetString returns the value as a string.

func (*Conf) IsSet

func (c *Conf) IsSet(key string) bool

IsSet returns true if key is set.

Jump to

Keyboard shortcuts

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