config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string, conf *Config) error

Load loads the configuration from the given path.

Types

type ApplicationConfig

type ApplicationConfig struct {
}

ApplicationConfig is the general application configuration.

type Config

type Config struct {
	Application *ApplicationConfig
	Discord     *DiscordConfig
}

Config contains all configuration objects.

type DiscordConfig

type DiscordConfig struct {
	Token string `toml:"token"`
}

DiscordConfig is the discord configuration.

Jump to

Keyboard shortcuts

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