config

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetConfig added in v1.0.5

func GetConfig() map[string]interface{}

func ReadConfig added in v1.0.3

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

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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