config

package
v0.0.0-...-a197711 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) (value bool)

GetBool returns bool value for key

func GetInt

func GetInt(key string) (value int)

GetInt returns int value for key

func GetString

func GetString(key string) (value string)

GetString returns string value for key

func Set

func Set(key, value string)

Set writes setting to config file

func SetDefaultFromMap

func SetDefaultFromMap(pair map[string]string)

SetDefaultFromMap could be used to override defaults by plugins

func Setup

func Setup(s *Setting)

Types

type Setting

type Setting struct {
	Path      string
	FileName  string
	EnvPrefix string
	Defaults  map[string]string
}

Jump to

Keyboard shortcuts

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