Crypto
Install Package with go get
go get
downloads the packages named by the import paths, along with their dependencies.
To install the go-crypto
package from the feat/mainsail
branch, you need to specify the commit SHA, as Go modules require a valid version or commit hash.
Use the following command:
go get github.com/ArkEcosystem/go-crypto/crypto@4712fec5266896d2387dbd3bae2185bf482d5178
This command tells Go to fetch the package at the specified commit SHA from the feat/mainsail
branch.
Development
- Fork the package.
- Clone your forked repository.
git clone https://github.com/<githubusername>/go-crypto
- Next, move into the cloned directory.
cd go-crypto
- Switch to the
feat/mainsail
branch.
git checkout feat/mainsail
- Install the dependencies.
# The -t flag will also fetch dependencies related to tests
go get -t ./...
- Dependencies are now installed. You can now run the tests to see if everything is running as it should.
go test ./...