Webkit浏览器:ChromeSafari搜狗高速浏览器傲游浏览器3QQ浏览器360极速浏览器世界之窗阿里云Firefox 浏览器:火狐IE内核浏览器:猎豹安全浏览器(liebao)(IE兼容模式)蚂蚁浏览器(MyIE9)腾讯TT(Tencent Traveler)QQ浏览器7(QQ Tour)爱...
分类:
其他好文 时间:
2014-10-29 16:32:44
阅读次数:
189
Channels are a typed conduit through which you can send and receive values with the channel operator,<-.ch <- v // Send v to channel ch.v := <-ch ...
分类:
其他好文 时间:
2014-10-29 01:49:32
阅读次数:
155
/* Exercise: Loops and Functions #43 */package main import ( "fmt" "math") func Sqrt(x float64) float64 { z := float64(2.) s := float64(0)...
分类:
其他好文 时间:
2014-10-29 01:48:06
阅读次数:
282
The next section covers Go's concurrency primitives.A Tour of GoGoroutinesAgoroutineis a lightweight thread managed by the Go runtime.go f(x, y, z)sta...
分类:
其他好文 时间:
2014-10-29 01:44:37
阅读次数:
108
Channels can bebuffered. Provide the buffer length as the second argument tomaketo initialize a buffered channel:ch := make(chan int, 100)Sends to a b...
分类:
其他好文 时间:
2014-10-29 01:43:40
阅读次数:
142
Package httpserves HTTP requests using any value that implementshttp.Handler:package httptype Handler interface { ServeHTTP(w ResponseWriter, r *Re...
分类:
Web程序 时间:
2014-10-29 00:06:07
阅读次数:
226
Remember the picture generator you wrote earlier? Let's write another one, but this time it will return an implementation ofimage.Imageinstead of a sl...
分类:
其他好文 时间:
2014-10-29 00:02:52
阅读次数:
394
Implement the following types and define ServeHTTP methods on them. Register them to handle specific paths in your web server.type String stringtype S...
分类:
Web程序 时间:
2014-10-28 23:51:10
阅读次数:
222
Package imagedefines theImageinterface:package imagetype Image interface { ColorModel() color.Model Bounds() Rectangle At(x, y int) color.Col...
分类:
其他好文 时间:
2014-10-28 23:49:25
阅读次数:
220
An error is anything that can describe itself as an error string. The idea is captured by the predefined, built-in interface type,error, with its sing...
分类:
其他好文 时间:
2014-10-28 21:36:35
阅读次数:
160