go bap
v0.4.0
用于在 Go 中使用比特币证明协议的库
go-bap需要受支持的 Go 版本。
go get -u github.com/bitcoinschema/go-bap
查看生成的文档
Package Dependencies
Library Deployment
goreleaser 用于轻松将二进制或库部署到 Github,可以通过以下方式安装: brew install goreleaser
。
.goreleaser.yml 文件用于配置 goreleaser。
使用make release-snap
创建发布的快照版本,最后make release
交付到生产环境。
Makefile Commands
查看所有makefile
命令
make help
所有当前命令的列表:
all Runs multiple commands
clean Remove previous builds and any test cache data
clean-mods Remove all the Go mod cache
coverage Shows the test coverage
diff Show the git diff
generate Runs the go generate command in the base of the repo
godocs Sync the latest tag with GoDocs
help Show this help message
install Install the application
install-go Install the application (Using Native Go)
install-releaser Install the GoReleaser application
lint Run the golangci-lint application (install if not found)
release Full production release (creates release in Github)
release Runs common.release then runs godocs
release-snap Test the full release (build binaries)
release-test Full production test release (everything except deploy)
replace-version Replaces the version in HTML/JS (pre-deploy)
tag Generate a new tag and push (tag version=0.0.0)
tag-remove Remove a tag if found (tag-remove version=0.0.0)
tag-update Update an existing tag to current commit (tag-update version=0.0.0)
test Runs lint and ALL tests
test-ci Runs all tests via CI (exports coverage)
test-ci-no-race Runs all tests via CI (no race) (exports coverage)
test-ci-short Runs unit tests via CI (exports coverage)
test-no-lint Runs just tests
test-short Runs vet, lint and tests (excludes integration tests)
test-unit Runs tests and outputs coverage
uninstall Uninstall the application (and remove files)
update-linter Update the golangci-lint package (macOS only)
vet Run the Go vet application
所有单元测试和示例都通过 GitHub Actions 运行并使用 Go 版本 1.23.x。查看配置文件。
运行所有测试(包括集成测试)
make test
运行测试(不包括集成测试)
make test-short
运行 Go 基准测试:
make bench
阅读有关此 Go 项目的代码标准的更多信息。
查看所有示例!
萨奇莫 | Z先生 |
查看贡献指南并遵循行为准则。
欢迎各种贡献?!表达支持最基本的方式就是明星?项目,或者提出问题。您也可以通过成为 GitHub 上的赞助商来支持该项目?或者通过捐赠比特币来确保这一旅程无限期地持续下去!
Siggi 创建 BAP ?