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