config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BLANK = ""

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, string)

Types

type CommandDefinition

type CommandDefinition struct {
	GlobalCommand string            `json:"command"`
	MethodCommand map[string]string `json:"methods"`
}

type Configuration

type Configuration struct {
	Version  string                       `json:"version"`
	Unformed map[string]interface{}       `json:"unformed"`
	Mappings map[string]CommandDefinition `json:"mappings"`
}

type Loader

type Loader struct{}

func NewLoader

func NewLoader() *Loader

func (*Loader) Load

func (m *Loader) Load(file string) (*Configuration, error)

Jump to

Keyboard shortcuts

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