打赏
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页
摘要: 安装 (1.)二进制方式安装 https://github.com/uw-labs/bloomrpc/releases (2.)源码安装 git clone https://github.com/uw-labs/bloomrpc.git cd bloomrpc yarn install && ./n 阅读全文
posted @ 2021-05-13 08:52 苍山落暮 阅读(5254) 评论(0) 推荐(0) 编辑
摘要: Delve是托管在Github上的一个开源项目。 项目地址:https://github.com/go-delve/delve 概要 Delve是Go程序的源代码级调试器。 Delve使您可以通过控制进程的执行,评估变量并提供线程/ goroutine状态,CPU寄存器状态等信息来与程序进行交互。 阅读全文
posted @ 2021-04-30 10:08 苍山落暮 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: GORM使用 mysql连接设置连接池数据 import ( "gorm.io/driver/clickhouse" "gorm.io/gorm" ) func main() { dsn := "tcp://localhost:9000?database=gorm&username=gorm&pas 阅读全文
posted @ 2021-04-26 11:19 苍山落暮 阅读(5521) 评论(0) 推荐(0) 编辑
摘要: chia安装 1.)安装python3.7/git环境 sudo apt-get install python3.7-venv python3.7-distutils python3.7-dev git -y 2.)安装chia sudo apt-get update sudo apt-get up 阅读全文
posted @ 2021-04-26 11:17 苍山落暮 阅读(718) 评论(0) 推荐(0) 编辑
摘要: docsify安装和使用 (1.)nodejs安装 npm i docsify-cli -g docsify -v (2.)创建目录,初始化 docsify init (3.)运行程序 docsify serve (4.)访问接口 htttp://localhost:3000 (5.)配置说明 定制 阅读全文
posted @ 2021-04-26 10:58 苍山落暮 阅读(764) 评论(0) 推荐(0) 编辑
摘要: golang-web参数校验 json schema package main import ( "fmt" "github.com/xeipuuv/gojsonschema" ) func main() { schemaLoader := gojsonschema.NewReferenceLoad 阅读全文
posted @ 2021-04-25 18:36 苍山落暮 阅读(282) 评论(0) 推荐(0) 编辑
摘要: golang-cron定时任务 cron.New创建一个定时器管理器 c.AddFunc添加一个定时任务,第一个参数是cron时间表达式,第二个参数是要触发执行的函数 go c.Start()新启一个协程,运行定时任务 c.Stop是等待停止信号结束任务 import( "github.com/ro 阅读全文
posted @ 2021-04-25 17:57 苍山落暮 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso 阅读全文
posted @ 2021-04-17 23:12 苍山落暮 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: golang性能分析 go-torch 使用 1.)安装graphviz apt intstall graphviz 2.)安装go-torch go get github.com/uber/go-torch 下载并复制flamegraph.pl到$GOPATH/bin下 https://githu 阅读全文
posted @ 2021-04-17 22:55 苍山落暮 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 分布式事务 1.常见的解决方案 1.)基于数据库XA/JTA协议的方式 2.)异步校验数据的方式 3.)基于可靠的消息(MQ)的解决方案 4.)TCC编程式解决方案 2.美团点评系统架构图 分布式事务的问题,订单系统和运单系统的数据一致性如何解决? 3.整理的设计思路 1.)首先要有一个可靠的消息生 阅读全文
posted @ 2021-04-17 21:05 苍山落暮 阅读(49) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 54 下一页