Esempio n. 1
0
func main() {
	http.Handle("/useless", websocket.Handler(func(ws *websocket.Conn) {
		ws.Write([]byte(useless.Foobar()))
	}))
	http.ListenAndServe(":3000", nil)
}
Esempio n. 2
0
// Test runs a simple test using the class useless package
// so that we're sure that the goers package is available.
func Test() {
	fmt.Println(useless.Foobar())
}