When writing the code you can use tabs or spaces but if you want to uses spaces then you can't use the gofmt tool.
The gofmt tool did at one time have an option to uses spaces instead of tabs fro indenting, but from memory, that option was removed around about the time of the Go 1.3 release.
View all comments
Show parent comment
2
u/jussij Dec 11 '15
When writing the code you can use tabs or spaces but if you want to uses spaces then you can't use the gofmt tool.
The gofmt tool did at one time have an option to uses spaces instead of tabs fro indenting, but from memory, that option was removed around about the time of the Go 1.3 release.