LoginSignup
0
0

More than 5 years have passed since last update.

一括go fmtをignoreする

Posted at

ピリオドから始まるファイルはgo fmtから無視される
下記コマンドでカレントディレクトリ以下の.foo.go以外の.goファイルは全てgo fmtが適用され上書きされる

% gofmt -s -w ./

参考
https://qiita.com/suin/items/9f9bdaa0cb9cb80cf752

Files starting with a period are ignored
https://golang.org/cmd/gofmt/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0