会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
super阳少
博客园
首页
新随笔
联系
订阅
管理
2020年5月13日
golang rabbitmq设置过期队列和死信队列
摘要: package mainimport ( "github.com/streadway/amqp" "fmt")const ( host1 = "127.0.0.1" port1 = 5672)func main() { var ( args = make(map[string]interface{}
阅读全文
posted @ 2020-05-13 17:21 月球放牛
阅读(1129)
评论(0)
推荐(0)
2020年4月8日
golang 实现Redis分布式锁
摘要: package main import ( "github.com/gomodule/redigo/redis" "time" "fmt" "errors") type Redis struct { pool *redis.Pool key string value string timeout i
阅读全文
posted @ 2020-04-08 16:41 月球放牛
阅读(3909)
评论(0)
推荐(0)
2019年11月1日
golang grpc定义proto文件
摘要: syntax = "proto3";package proto;//定义请求结构message RequestUser{ string uid=1;}//定义响应结构message ResponseUser{ string nickname=1; string mobile=1; //user.pr
阅读全文
posted @ 2019-11-01 16:26 月球放牛
阅读(1121)
评论(0)
推荐(0)
2019年9月10日
golang select
摘要: for { select { case <-ch: break }} break跳出的是select,for会继续循环执行
阅读全文
posted @ 2019-09-10 10:45 月球放牛
阅读(114)
评论(0)
推荐(0)
公告