go 格式化

2019-07-23  本文已影响0人  阳丶小光

1. 对已有代码format

for file infind -L *.go .; ``do gofmt -w $file; done

2. 添加hook,在提交代码之前,提醒代码格式化问题

3. 添加hook到全局的git hook里面

上一篇 下一篇

猜你喜欢

热点阅读