All of the above answers speak for themselves. In addition to those that I would like to add, by default you can only access those commands from the terminal without a binary path whose bin folder is added to the environment variable, be it linux, mac or windows.
Otherwise, you will need to specify the path to the bin folder of this software and the binary name. For example, in your case <path_to_bin_folder>/go-eval .
This is the most common reason why you cannot execute this command directly from the command line. Please remember this and try before searching for answers on the Internet, because this will most likely solve your problem. All you need to know is the installation path.
So, write the following in rc or the profile file for your terminal and save, for example, for zsh it is ~/.zshrc , for bash it is ~/.bash_profile or ~/.bash_rc .
export GOPATH="$HOME/go" export PATH=$PATH:$GOPATH/bin
Now, although the file is saved, the changes will not be reflected immediately. You should find the profile file as above. For this type, source ~/.zshrc . Now you can run the command directly from the command line. Even if the problem persists, try logging out of the terminal session and logging out and then logging in again.
If you want to add the path to the bin folder for other packages, you can add it to the $ PATH environment variable using : So, for example, if you want to add the path to the Java binary, then simply
export PATH=$PATH:$JAVA_HOME/bin
It is also recommended that you define the path to the package root folder in a separate environment variable (example $GOPATH="$HOME/go" ). In case the installation path changes in the future, you just need to update the environment variable associated with this binary (for example, just update, $ GOPATH = "newpath"), and your command will work as before, as the change in $ GOPATH will be reflected in $ PATH.