⭐ Star
this repository if you find it valuable and worth maintaining.
👁 Watch
this repository to get notified about new releases, issues, etc.
This is a minimalist tool to convert NATS nkeys to a private/public keypair.
$ nkey -s <seed>
# example
$ nkey -s SAAOW7V3L5YRJGBYY3ZTXB5WHYU4W3HFQ44MBYIBWAECRMD6RMZJTS426E
Private key: PDVX5O27OEKJQOGG6M5YPNR6FHFWZZMHHDAOCANQBAULA7ULGKM4XXDL2O2N6GNXC7SYZDSCXEWR5NN4SDECHPU77HZX6K7JCJJV5EQFFIZQ
Public key: ADOGXU5U34M3OF7FRSHEFOJND223ZEGIEO7J76PTP4V6SESTL2JALU4U
go install github.com/siredmar/nkey@latest
make
- execute the build pipeline.make help
- print help for the Make targets.
F1
→ Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B)
to execute the build pipeline.
The release workflow is triggered each time a tag with v
prefix is pushed.
CAUTION: Make sure to understand the consequences before you bump the major version. More info: Go Wiki, Go Blog.
Notable files:
- .github/workflows - GitHub Actions workflows,
- .github/dependabot.yml - Dependabot configuration,
- .vscode - Visual Studio Code configuration files,
- .golangci.yml - golangci-lint configuration,
- .goreleaser.yml - GoReleaser configuration,
- Dockerfile - Dockerfile used by GoReleaser to create a container image,
- Makefile - Make targets used for development, CI build and .vscode/tasks.json,
- go.mod - Go module definition,
- tools.go - build tools.
Developers that use Visual Studio Code can take advantage of the editor configuration. While others do not have to care about it. Setting configs for each repo is unnecessary time consuming. VS Code is the most popular Go editor (survey) and it is officially supported by the Go team.
You can always remove the .vscode directory if it really does not help you.
GitHub Actions is out-of-the-box if you are already using GitHub. Here you can learn how to use it for Go.
However, changing to any other CI server should be very simple, because this repository has build logic and tooling installation in Makefile.
Install tdm-gcc
and copy C:\TDM-GCC-64\bin\mingw32-make.exe
to C:\TDM-GCC-64\bin\make.exe
.
Alternatively, you may install mingw-w64
and copy mingw32-make.exe
accordingly.
Take a look here, if you have problems using Docker in Git Bash.
You can also use WSL (Windows Subsystem for Linux) or develop inside a Remote Container. However, take into consideration that then you are not going to use "bare-metal" Windows.
Consider using goyek for creating cross-platform build pipelines in Go.
Take a look at GoReleaser docs as well as its repo how it is dogfooding its functionality. You can use it to add deb/rpm/snap packages, Homebrew Tap, Scoop App Manifest etc.
If you are developing a library and you like handcrafted changelog and release notes, you are free to remove any usage of GoReleaser.
Feel free to create an issue or propose a pull request.
Follow the Code of Conduct.