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.

13 lines
300 B

## bazel 的 golang 示例
1. 更新依赖关系
参考地址:
https://github.com/bazelbuild/rules_go/blob/master/docs/go/core/bzlmod.md
bazel mod tidy
2. 包 BUILD.bazel 文件更新
bazel run //:gazelle
3. 编译命令
bazel build //:hello
4. 运行命令
bazel run //:hello