Example #1
0
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))
}
Example #2
0
// RouterSetup boots the router and fires up
// an HTTP response recorder for each test.
func routerSetup() {
	web.NewRouter("", "", "")
}