GO
卒迹
人一定要有梦想,但是超越的目标却一定是在身边
展开
-
go 性能优化
1https://www.cnblogs.com/zhangboyu/p/7456609.html2https://studygolang.com/articles/103643https://segmentfault.com/a/11900000050063514https://colobu.com/2015/09/07/gotchas-and-common-mistakes-in...转载 2018-12-18 18:06:33 · 510 阅读 · 0 评论 -
influxdb常用操作
插入数据insert test,host=127.0.0.1 ,monitor_name=test count=1删除表drop measurement "measurement"命令行插入数据use testDbinsert test,host=127.0.0.1, monitor_name=test count=1通过http接口curl -i -XPOST 'http:...翻译 2018-09-03 22:37:54 · 1663 阅读 · 0 评论 -
golang框架Revel介绍
http://www.gorevel.cn/docs/index.html翻译 2018-08-16 17:25:32 · 1607 阅读 · 1 评论 -
gin框架使用orm操作数据库
简介:orm俗称关系对象模型,用来映射数据库SQL和对象的工具 ,相当于mongodb里面的mongoose库,Java里面的mybatis ibatisGolang GORM使用https://www.jianshu.com/p/9b906b62b2cc 如何使用 Gin 和 Gorm 搭建一个简单的 API 服务 (一)https://www.jianshu.com/p/356...翻译 2018-08-16 16:33:22 · 10754 阅读 · 0 评论 -
golang实现线程安全的Set结构
支持并发访问package mainimport ( "sync" "fmt")type Set struct { m map[interface{}]bool sync.RWMutex}func New() *Set { return &Set{ m :map[interface{}]bool{}, }...翻译 2018-08-10 14:13:03 · 1500 阅读 · 0 评论