Go
Project Structure
pkg
- shared common packages across coinstacksinternal
- internal utility packagescoinstacks/{coin}
- coin specific logic
Dependencies
Notes
It is suggested configuring your editor of choice to utilize the following tooling:
gopls language server
golangci-lint to match the linter used in CI
goimports to match the formatting run on git pre-commit hook (default behavior when using gopls)
Visual Studio Code expects any golang projects to be opened up with a
go.mod
file at the root directory for the tooling to work properly, so be sure to open up the project atunchained/go
Initial Setup
Install Golang
make sure
GOPATH
is set in your shell environment, since it's needed fordocker-compose
setup to work properlyMake coinstacks
Copy sample env file:
Go to
unchained/
and install dependencies by runningyarn
(which will also prepare the git pre-commit hook withgoimports
)
Last updated