Example #1
0
// Setup the server
func (f *TestSuite) SetUpSuite(c *C) {
	// Set our environment to testing
	os.Setenv("DISTRIBUTOR_ENV", "test")

	// Start our server
	conn := httptest.NewServer(resources.NewRouter())

	f.Endpoint = conn.URL
	f.Server = conn
}
Example #2
0
File: main.go Project: Pholey/Exgo
func main() {
	// Start the server
	println("Listening at :8080")
	log.Fatal(resources.NewRouter().Run(":8080"))
}