示例#1
0
func main() {
	http.Handle("/useless", websocket.Handler(func(ws *websocket.Conn) {
		ws.Write([]byte(useless.Foobar()))
	}))
	http.ListenAndServe(":3000", nil)
}
示例#2
0
文件: import.go 项目: joamag/goers
// 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())
}