资源预览内容
第1页 / 共10页
第2页 / 共10页
第3页 / 共10页
第4页 / 共10页
第5页 / 共10页
第6页 / 共10页
第7页 / 共10页
第8页 / 共10页
第9页 / 共10页
第10页 / 共10页
亲,该文档总共10页全部预览完了,如果喜欢就下载吧!
资源描述
Golang分享 Beego Redigo Ffjson Beego/orm 其它Golang服务用到的模块 官方文档 https:/beego.me/docs/intro/beego https:/github.com/garyburd/redigo https:/beego.me/docs/module/cache.md APRedigo(JimDB) encoding/json https:/golang.org/pkg/encoding/json/ 通过反射实现,性能不好 Ffjson https:/github.com/pquerna/ffjson MarshalJSON()、UnmarshalJSON() 通过重写函数实现 ffjson myfile.goffjson github.com/astaxie/beego/orm 驱动 github.com/go-sql-driver/mysqlBeego/orm 自动生成json结构定义 https:/github.com/ChimeraCoder/gojson Bee https:/github.com/beego/bee bee generate appcode -tables=user_roles - driver=mysql - conn=“root:qwertytcp(192.168.33.10:3306)/plist_ad min?charset=utf8“ -level=1 bee help generate其它 https:/golang.org/pkg/testing/ https:/github.com/astaxie/build-web-application-with- golang/blob/master/zh/11.3.md go test -coverprofile=c.out & go tool cover -html=c.outtest常见问题 GC。不只是STW,还有内存分配性能问题。数据结 构优化,对象池。 程序异常退出。常规beego会捕获;自己起的协程需 要加defer捕获异常。 内存占满。debug.FreeOSMemory() GODEBUG=gctrace=1 可以看见内存使用情况、对象 数,GC各个阶段情况 JimDB AP挂了。手动刷新连接池。 消息量大。使用一个队列接受消息。 论坛 https:/gocn.io/ 进阶 https:/github.com/qyuhen/book Gopher china 2016 视频 http:/zt.jikexueyuan.com/gopherchina2016 Gopher china 2015 视频 http:/www.imooc.com/learn/407 文档 godoc.org资料
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号