- Install golang
- [Optional] Navigate to your desired location to hold the repository. Ex:
cd $HOME/Downloads/
- Clone the repository.
git clone https://github.com/daneofmanythings/wohrdle
There are three options for how to install and use the app.
Install the binary into your $GOBIN ($GOPATH/bin) to expose it as a command in your terminal.
go install
You can then run it from anywhere with: wohrdle
If you want to build the binary but not commit it to your path.
go build
Then, to run the program, enter the full path to where you cloned the repository. Ex:
$HOME/Downloads/wohrdle
or, from the repository root, run: ./wohrdle
If you don't want to save the built binary, run this from the repository root to run the app as a one-off.
go run main.go
The build and install commands default the binary name to the go package name.
In cases 1 and 2, you may specify a different name for the binary with the -o flag.
Ex:
go install -o newname
which can then be ran with newname

