Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

gofmt (1)

Name

gofmt - format Go code

Synopsis

gofmt [flags] [path]...

Description

gofmt(1)                         User Commands                        gofmt(1)



NAME
       gofmt - format Go code

SYNOPSIS
       gofmt [flags] [path]...

DESCRIPTION
       A tool for formatting Go source code.  For full documentation run gofmt
       -help or see http://golang.org/cmd/gofmt.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | developer/gcc/gcc-go-11 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+

SEE ALSO
       go(1)



NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source                was                downloaded                from
       https://ftp.gnu.org/gnu/gcc/gcc-11.3.0/gcc-11.3.0.tar.gz.

       Further information about this software can be found on the open source
       community website at https://gcc.gnu.org/.



Go                               January 2015                         gofmt(1)