According to http://golang.org/src/cmd/gofmt/doc.go , the default values ββare:
EDIT: the original answer below is now incorrect. The correct section of the linked source file (current 07/25/2014):
Gofmt Go program formats.
It uses tabs (width = 8) for indents and spaces for alignment.
Original answer (deprecated):
Formatting control flags: -comments=true Print comments; if false, all comments are elided from the output. -tabs=true Indent with tabs; if false, spaces are used instead. -tabwidth=8 Tab width in spaces.
Intermernet Sep 30 '13 at 12:52 2013-09-30 12:52
source share