Follow the official docs or use your favorite dependency manager to install Go: https://golang.org/doc/install
Verify your $GOPATH
is correctly set before continuing!
Go is bit picky about where you store your repositories.
The convention is to store:
- the source code inside the
$GOPATH/src
- the compiled program binaries inside the
$GOPATH/bin
mkdir -p $GOPATH/src/github.com/web3coach
cd $GOPATH/src/github.com/web3coach
git clone https://github.com/web3coach/the-blockchain-bar.git
PS: Make sure you actually clone it inside the src/github.com/web3coach
directory, not your own, otherwise it won't compile. Go rules.
This project currently depends on gopsutil which is a library that provides a cross-platform interface for querying operating system information. Unfortunately, Apple Silicon/M1 machines are not yet supported by this library which will result in build failures when trying to compile this project locally. If you are using an Apple M1 machine, it is recommended to follow the guide for using Docker for local development.