今天将Go 的websocket集成到已有的http中时也遇到以下一个问题:其中主要是接口类型转换转载自[http://www.cnblogs.com/ghj1976/archive/2013/04/23/3037914.html]我们用Golang做网站时,必然会有这样的代码:http.Handle("/", http.FileServer(http.Dir(".")))注意这里的http.Handle( 函数的第二个参数,Golang的源码中这个函数的描述如下:// Handle registers the handler for the given Read More
posted @ 2014-03-15 22:53 lingjip Views(1550) Comments(0) Diggs(0) Edit