Пример #1
0
func init() {
	log := logging.NewLog15()

	controller = NewController(log)
	initializeRepos()

	server = httptest.NewServer(NewRouter(controller))
}
Пример #2
0
func main() {
	initializeConfig()

	log := logging.NewLog15()
	c := controller.NewController(log)

	initializeRepos(c)

	fmt.Printf("Initializing root route: %s \n", conf.Routing.Root)
	r := controller.NewRouter(c, conf.Routing.Root)

	fmt.Println("Listening on port 8000")
	http.ListenAndServe(":8000", r)
}