config

package
v0.0.0-...-89eca19 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config handles configuration of Moenawark. It allows to load a TOML configuration file and sets the defaults for each configuration item via struct tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

Get returns a config item value as a string

func GetInt

func GetInt(key string) int

GetInt returns a config item value as an int

func LoadFile

func LoadFile(path string) error

LoadFile loads a TOML configuration file

Types

This section is empty.

Jump to

Keyboard shortcuts

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