config

package
v0.0.0-...-9b72c6e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Server Server
	Serial Serial
}

func LoadConfig

func LoadConfig(prefix, filename string) (Configuration, error)

type Serial

type Serial struct {
	Address string
}

type Server

type Server struct {
	Host string `default:"0.0.0.0"`
	Port string `default:"8080" envconfig:"PORT"`
}

Jump to

Keyboard shortcuts

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