config

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlag

func GetFlag(name string) interface{}

func GetFlagBool

func GetFlagBool(name string) bool

func GetFlagString

func GetFlagString(name string) string

Types

type Config

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

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Get

func (c *Config) Get(name string) interface{}

func (*Config) GetBool

func (c *Config) GetBool(name string) bool

func (*Config) GetString

func (c *Config) GetString(name string) string

func (*Config) GetStringWithDefault

func (c *Config) GetStringWithDefault(name string, def string) string

func (*Config) GetSub

func (c *Config) GetSub(name string) Config

Jump to

Keyboard shortcuts

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