The Go command line tool do not provide package cleaning option. At max it can remove object files and cached files which will remove executable file from bin folder and from pkg folder. But the source files would still be there. So if you want to completely remove the package then you have to do it manually. Otherwise, create your own script to do this. Alternatively, you can use below script. Just put it somewhere so that it could be globally accessible. Here is a shell script that can completely clean the go package that you have installed by using go get <package> command. File : goclean.sh #!/bin/env bash goclean() { local pkg=$1; shift || return 1 local ost local cnt local scr echo "Clean removes object files from package source directories (ignore error)" go clean -i $pkg echo "Set local variables" if [ "$(uname -m)" == "x86_64" ]; then ost="$(uname)"; o...
Possible solutions of Impossible problem. Out-of-the-box Ideas. Amazing notes. Unbelievable facts. Simple & easy to follow tips and procedures.