Exemplo n.º 1
0
func init() {
	server = httptest.NewServer(router.Routes())

	libraryUrl = fmt.Sprintf("%s/library", server.URL)
	sharedUrl = fmt.Sprintf("%s/shared/blank.mp3", server.URL)
	nestedUrl = fmt.Sprintf("%s/shared/folder/nested.mp3", server.URL)
	badUrl = fmt.Sprintf("%s/shared/notype", server.URL)
}
Exemplo n.º 2
0
func main() {
	port := info.Port()
	log.Println("Listening on port " + port)
	open.Start("http://127.0.0.1:" + port)
	http.ListenAndServe(":"+port, router.Routes())
}