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 ?