golang很多开源项目,铺天盖地,却很少有官方版。有时候真是选择乏力,选择一个优秀的流行的组件,能少走很多弯路。
整理一些最为出名和好用的开源组件(持续更新)
1.web框架
-
beego
go get github.com/astaxie/beego
http://beego.me
2.数据库
-
mongo(极有可能成为官方pkg)
go get gopkg.in/mgo.v2
http://labix.org/mgo
-
mysql
go get github.com/go-sql-driver/mysql
https://godoc.org/github.com/go-sql-driver/mysql
3.缓存
-
redis
go get github.com/garyburd/redigo/redis
https://godoc.org/github.com/garyburd/redigo/redis
-
memcache
go get github.com/bradfitz/gomemcache/memcache
https://godoc.org/github.com/bradfitz/gomemcache/memcache
4.MQ
-
go-nsq
go get github.com/nsqio/go-nsq
https://godoc.org/github.com/nsqio/go-nsq
go-nsq是nsq的golang client包,nsq集群更多资料 http://nsq.io/
有疑问加站长微信联系(非本文作者)