pkg
- shared common packages across coinstacksinternal
- internal utility packagescoinstacks/{coin}
- coin specific logic
- 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
-
Install Golang
make sure
GOPATH
is set in your shell environment, since it's needed fordocker-compose
setup to work properly -
Make coinstacks
cd go && make
-
Copy sample env file:
cp go/cmd/ethereum/sample.env go/cmd/ethereum/.env
-
Go to
unchained/
and install dependencies by runningyarn
(which will also prepare the git pre-commit hook withgoimports
)yarn