You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
8 months ago | |
---|---|---|
.github/workflows | 8 months ago | |
lib | 8 months ago | |
.bazelrc | 8 months ago | |
BUILD.bazel | 8 months ago | |
MODULE.bazel | 8 months ago | |
MODULE.bazel.lock | 8 months ago | |
Makefile | 8 months ago | |
README.Docker.md | 8 months ago | |
README.md | 8 months ago | |
WORKSPACE | 8 months ago | |
bazel-bazel_go | 8 months ago | |
go.mod | 8 months ago | |
go.sum | 8 months ago | |
main.go | 8 months ago | |
sonar-project.properties | 8 months ago |
README.md
bazel 的 golang 示例
-
更新依赖关系
参考地址: https://github.com/bazelbuild/rules_go/blob/master/docs/go/core/bzlmod.md bazel mod tidy -
包 BUILD.bazel 文件更新 bazel run //:gazelle
-
编译命令 bazel build //:hello
-
运行命令 bazel run //:hello
-
整个项目参考
429121110b
制作