config

package
v0.0.0-...-f11db3b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Routes map[string]interface{} `json:"routes", yaml:"routes"`

	Port string `json:"port", yaml:"port"`

	Address string `json:"address", yaml:"address"`
}

A structure that contains parsed configuration data

func LoadConfigJson

func LoadConfigJson(fileName string) (Configuration, error)

func LoadConfigYaml

func LoadConfigYaml(fileName string) (Configuration, error)

Jump to

Keyboard shortcuts

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