码迷,mamicode.com
首页 >  
搜索关键字:tour    ( 464个结果
A Tour of Go Concurrency
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
A Tour of Go Buffered Channels
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
A Tour of Go Web servers
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
A Tour of Go Exercise: Images
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
A Tour of Go Exercise: HTTP Handlers
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
A Tour of Go Images
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
A Tour of Go Errors
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
A Tour of Go Interfaces are satisfied implicitly
A type implements an interface by implementing the methods.There is no explicit declaration of intent.Implicit interfaces decouple implementation pack...
分类:其他好文   时间:2014-10-28 21:29:07    阅读次数:232
A Tour of Go Interfaces
An interface type is defined by a set of methods.A value of interface type can hold any value that implements those methods.Note:The code on the left ...
分类:其他好文   时间:2014-10-28 21:26:00    阅读次数:185
A Tour of Go Exercise: Errors
Copy yourSqrtfunction from the earlier exercises and modify it to return anerrorvalue.Sqrtshould return a non-nil error value when given a negative nu...
分类:其他好文   时间:2014-10-28 21:22:45    阅读次数:155
464条   上一页 1 ... 33 34 35 36 37 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!