代码拉取完成,页面将自动刷新
#statik -src=template; go build -o iyfiysi iyfiysi.go
go mod download
go install github.com/rakyll/statik
go install github.com/golang/protobuf/protoc-gen-go
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
BUILT_AT=$(date "+%Y-%m-%d %H:%M:%S") #2020-03-30 10:08:54
COMMIT_TAG=$(git rev-parse HEAD) #1c7caa847ce196f0668e01794d3cd773944f3127
if [ ${#COMMIT_TAG} -eq 40 ];then
COMMIT_TAG=${COMMIT_TAG:0:8}
else
COMMIT_TAG="unknow"
fi
statik -src=template -f
cd cmd/iyfiysi;go install -ldflags "-X 'iyfiysi/internal/iyfiysi.commit=$COMMIT_TAG' -X 'iyfiysi/internal/iyfiysi.date=$BUILT_AT'" .
cd -
cd cmd/protoc-gen-iyfiysi;go install -ldflags "-X 'iyfiysi/internal/iyfiysi.commit=$COMMIT_TAG' -X 'iyfiysi/internal/iyfiysi.date=$BUILT_AT'" .
cd -
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。