// 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 }
func main() { // Start the server println("Listening at :8080") log.Fatal(resources.NewRouter().Run(":8080")) }