本地开发环境测试使用安装参考地址:https://blog.csdn.net/chuang504321176/article/details/109694584etcd学习参考地址:http://www.topgoer.com/数据库操作/go操作etcd/操作etcd.htmldemo代码地址:h
微服务相关知识微服务架构总结go+protobuf+grpc+consul简单的服务发现模型GO-zero doc网关创建创建网关目录go-zero-demo\api\user创建网关文件user.apisyntax = "v2"info( author: "tut
func() {}() 如上代码,是一个golang的匿名函数。经常会用到前后两个括号实际是一个语法糖 例如: func(user string) { fmt.Println("chose user is " + user) }("TUTU") 等同于 f := func(user stri
package mainimport ("fmt""github.com/gomodule/redigo/redis""time""unsafe")type PSubscribeCallback func (patter
func _arrayDiff(array1 []int, othersParams []int) ([]int, error) { if len(array1) == 0 { return []int{}, nil } if len(array1) > 0 &&