Go 编程使用的一些框架、组件、名词

go modules 包管理使用 1.11开始有go modules管理方案, 1.12 之后的 go module 方式管理代码路径,而不是 gopath 模式。

gRPC

protoc

protocol buffer的安装 https://github.com/protocolbuffers/protobuf/releases

protoc-gen-go

git clone https://github.com/golang/protobuf.git
cd protobuf
git checkout v1.3.2
cd protoc-gen-go
go install

protoc-gen-micro

git clone https://github.com/microhq/protoc-gen-micro.git
cd protoc-gen-micro
git checkout v0.8.0
go install

micro go-micro

go get github.com/micro/micro/v2

#micro v2需要配置groc v1.26.0版本
go get google.golang.org/grpc@v1.26.0

bazel

install:
$ chmod +x bazel-<version>-installer-linux-x86_64.sh
$ ./bazel-<version>-installer-linux-x86_64.sh --user The --user flag installs Bazel to the $HOME/bin directory on your system and sets the .bazelrc path to $HOME/.bazelrc. Use the --help command to see additional installation options.
set environment: export PATH="$PATH:$HOME/bin"
set goproxy: export GOPROXY=https://goproxy.cn

ORM框架

grom GORM 指南 | GORM - The fantastic ORM library for Golang, aims to be developer friendly.

Go gin:

Go Gin 简明教程 | 快速入门 | 极客兔兔

go redis:

freecache:

GitHub - coocood/freecache: A cache library for Go with zero GC overhead.

服务发现

etcd

常用的环境变量配置

  • go env -w GO111MODULE=on
  • go env -w GOPROXY=https://goproxy.cn,direct

IDE:

   goland

gRPC 工具:

   bloomrpc https://github.com/bloomrpc/bloomrpc

   milkmanhttps://github.com/warmuuh/milkman

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值