Installation

To install the GoHT CLI tool, you will use the following command:

$ go install github.com/stackus/goht/cmd/goht@latest

This will install the goht command into your $GOPATH/bin directory. If you don’t have a $GOPATH set, the command will be installed into your $HOME/go/bin directory.

To verify the installation has been successful, you can run the following command:

$ goht -v

If you see the version number of the installed GoHT CLI tool, then you’re good to go!

If you don’t see the version number, then you may need to add the directory where the goht command was installed to your $PATH.

Linux and macOS Users

You can do this by adding the following line to your shell’s configuration file (e.g. ~/.bashrc, ~/.zshrc, etc.):

export PATH=$PATH:$HOME/go/bin

Windows Users

You can do this by modifying the Path environment variable in the system settings to include the directory where the goht command was installed.

Add this to the Path Environment Variable:

%USERPROFILE%\go\bin