Hello there I have easy way to export go path for both Debian,Redhat based system as well for Termux. and Run go tools without changing directory . From anywhere in Terminal ****For Debian
- Copy the above given code.
- Open terminal, type : nano ~/.zshrc or nano ~/.bashrc
- Paste that line at last of code:DO Ctrl+Shift+V
- Save it: Ctrl+X then hit Enter from Keyboard
********* For Termux********
I have used oh-my-zsh shell for it.
- Copy the above given code as mentioned for termux.
- Open terminal, type : nano ~/.zshrc or nano ~/.bashrc
- Paste that line at last of code:DO Ctrl+Shift+V
- Save it: Ctrl+X then hit Enter from Keyboard