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.
 
 
 
会PS的小码农 7b7c597125 添加参考 8 months ago
.github/workflows 完成初步可运行环境 8 months ago
lib 重新构建可运行的demo 8 months ago
.bazelrc 完成初步可运行环境 8 months ago
BUILD.bazel 重新构建可运行的demo 8 months ago
MODULE.bazel 重新构建可运行的demo 8 months ago
MODULE.bazel.lock 重新构建可运行的demo 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 重新构建可运行的demo 8 months ago
go.mod 重新构建可运行的demo 8 months ago
go.sum 重新构建可运行的demo 8 months ago
main.go 完成初步可运行环境 8 months ago
sonar-project.properties 完成初步可运行环境 8 months ago

README.md

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

  5. 整个项目参考429121110b 制作