config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FilePath = "./config.yml"

Variables

This section is empty.

Functions

func ReadConfig added in v1.0.3

func ReadConfig(name string, config interface{}) bool

func RegisterConfig added in v1.0.3

func RegisterConfig()

Types

type Config

type Config struct {
	Server Server             `json:"server" yaml:"server"`
	Iris   iris.Configuration `json:"iris" yaml:"iris"`
}

type Server

type Server struct {
	Port string `json:"port" yaml:"port"`
}

Jump to

Keyboard shortcuts

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