
go
ShiningStarPxx
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
go study first
如何在go中写出漂亮简洁的function closure 有个excercise,是写出fibonacci,用function closure 这个是几经周折后的答案 package main import "fmt" // fibonacci is a function that returns // a function that retu原创 2013-01-07 18:14:40 · 577 阅读 · 0 评论 -
go study second
go 内部实现了http协议,下面一段代码简洁的实现了一个webserver, 很精彩,后续有机会深入挖掘 package main import ( "fmt" "net/http" ) type Hello struct{} func (h Hello) ServeHTTP( w http.ResponseWriter, r原创 2013-01-07 23:06:00 · 756 阅读 · 0 评论