11. ソフトタブも使える、が・・
$ gofmt -tabs=false -tabwidth=4 -l -w ファイル名
しかし、
http://golang.org/doc/effective_go.html
Indentation
We use tabs for indentation and gofmt emits them by
default. Use spaces only if you must.
訳)インデントはデフォルトで tab を使います。
スペースはどうしても必要なときだけ使ってね。
12. ソフトタブも使える、が・・
$ gofmt -tabs=false -tabwidth=4 -l -w ファイル名
しかし、
http://golang.org/doc/effective_go.html
Indentation
We use tabs for indentation and gofmt emits them by
default. Use spaces only if you must.
訳)インデントはデフォルトで tab を使います。
スペースはどうしても必要なときだけ使ってね。