예제 #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("", "", "")
}