示例#1
0
文件: main.go 项目: prisamuel/goberry
func main() {
	flag.Parse()

	web.NewRouter(ramlFile, buildstamp, githash)

	if version != "" {
		journal.LogChannel("build", fmt.Sprintf("build date: %s commit: %s", buildstamp, githash))
	}

	journal.LogChannel("information", fmt.Sprintf("%s up on port %s", serviceName, port))
	log.Fatal(http.ListenAndServe(port, nil))
}
示例#2
0
// RouterSetup boots the router and fires up
// an HTTP response recorder for each test.
func routerSetup() {
	web.NewRouter("", "", "")
}