config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) interface{}

Get a config entry

func GetBool

func GetBool(key string) bool

GetBool a config entry as bool

func GetString

func GetString(key string) string

GetString a config entry as string

func LoadConfig

func LoadConfig() error

LoadConfig loads the config.json file in the current working directory. If the "GOYAVE_ENV" env variable is set, the config file will be picked like so: - "production": "config.production.json" - "test": "config.test.json" - By default: "config.json"

func Set

func Set(key string, value interface{})

Set a config entry

The change is temporary and will not be saved for next boot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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