conf

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 8 Imported by: 4

README

viper-conf

Singleton viper config

Documentation

Overview

Package conf a viper-based config

By taka@cmwang.net

Index

Constants

This section is empty.

Variables

Log logger

Functions

func GetBool

func GetBool(key string) bool

GetBool returns the value associated with the key as a boolean

func GetDuration

func GetDuration(key string) time.Duration

GetDuration returns the value associated with the key as a duration

func GetInt

func GetInt(key string) int

GetInt returns the value associated with the key as an integer

func GetInt64

func GetInt64(key string) int64

GetInt64 returns the value associated with the key as an int64

func GetString

func GetString(key string) string

GetString returns the value associated with the key as a string

func Set

func Set(key string, value interface{})

Set set the value for the key in the override regiser.

func SetDefault

func SetDefault(key string, value interface{})

SetDefault set the default value for this key.

Types

type Fields

type Fields log.Fields

Fields log.Fields alias

func (Fields) Fields

func (f Fields) Fields() log.Fields

Fields implements log.Fielder.

Jump to

Keyboard shortcuts

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