Fix

"cannot find package" After Installing Go

Cli
Fix 'cannot find package' by adding Go's bin directory to your PATH environment variable.

The error occurs because your shell does not know where the Go binary is located after installation. Add Go's bin directory to your PATH environment variable and restart your terminal.

export PATH=$PATH:/usr/local/go/bin

To make this change permanent, add the line above to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc, or ~/.profile).