config

package
v0.0.0-...-5469a11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ModeDebug run as debug
	ModeDebug = "debug"

	//ModeRelease run as release
	ModeRelease = "release"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WebServer `json:"webserver"`
}
var (
	C *Config
)

func SharedInstance

func SharedInstance(path string) *Config

Load 创建一个配置

type WebServer

type WebServer struct {
	HTTPPort int    `json:"port"`
	RunMode  string `json:"run_mode"`
}

Jump to

Keyboard shortcuts

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