viper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() config.Config

New returns a new viper config

Types

type Config

type Config struct {
}

Config defines a viper backed config

func (*Config) Get

func (c *Config) Get(key string) (interface{}, error)

Get returns the value of the key

func (*Config) GetBool

func (c *Config) GetBool(key string) (bool, error)

GetBool returns the bool value of the key

func (*Config) GetFloat64

func (c *Config) GetFloat64(key string) (float64, error)

GetFloat64 returns the float64 value of the key

func (*Config) GetInt64

func (c *Config) GetInt64(key string) (int64, error)

GetInt64 returns the int64 value of the key

func (*Config) GetString

func (c *Config) GetString(key string) (string, error)

GetString returns the string value of the key

func (*Config) Set

func (c *Config) Set(key string, value interface{}) error

Set the value under the key in config

Jump to

Keyboard shortcuts

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