goimports

Updates Go import lines, adding missing ones and removing unreferenced ones. More information: <https://godoc.org/golang.org/x/tools/cmd/goimports>.

Debian Debian
RUN apt-get update && \ apt-get install -y golang-golang-x-tools
Ubuntu
RUN apt-get update && \ apt-get install -y golang-golang-x-tools
Arch Arch Linux
RUN pacman -S --noconfirm golang-googlecode-tools-goimports-0
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y golang-golang-x-tools
Fedora
RUN dnf install -y golang-googlecode-tools-goimports-0
Raspbian
RUN apt-get update && \ apt-get install -y golang-golang-x-tools
click the source code to copy install goimports on any operating system with command-not-found.com