gofmt

Tool for formatting Go source code. More information: <https://golang.org/cmd/gofmt/>.

Debian Debian
RUN apt-get update && \ apt-get install -y golang-1.12-go
Ubuntu
RUN apt-get update && \ apt-get install -y golang-1.12-go
Arch Arch Linux
RUN pacman -S --noconfirm go-pie
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y golang-1.11-go
CentOS
RUN yum install -y gcc-go
Fedora
RUN dnf install -y gcc-go
Raspbian
RUN apt-get update && \ apt-get install -y golang-1.6-go
click the source code to copy install gofmt on any operating system with command-not-found.com