一、安装microhtml
须要使用GO1.11以上版本linux
#linux 下 export GO111MODULE=on export GOPROXY=https://goproxy.cn
# 使用以下指令安装 go get -u -v github.com/micro/micro go get -u -v github.com/micro/go-micro
二、安装protocgit
参考文章见https://www.cnblogs.com/Dong-Ge/p/11463386.htmlgithub
三、安装protoc-gen-microgolang
先安装golang依赖库spa
cd $GOPATH/src/golang.org/x git clone https://github.com/golang/net.git git clone https://github.com/golang/crypto.git git clone https://github.com/golang/text.git
安装protoc-gen-microcode
go get github.com/micro/protoc-gen-micro
四、最后安装microhtm
go get github.com/micro/micro
五、生成micro文件blog
protoc --plugin=protoc-gen-go=$GOPATH/bin/protoc-gen-go --plugin=protoc-gen-micro=$GOPATH/bin/protoc-gen-micro --proto_path=$GOPATH/src:. --micro_out=. --go_out=. *.proto