gofmt's output does not depend on the displayed width of a tab. Indentation uses tabs, alignment within a line uses spaces, and there is no alignment directly following indentation.
Note that go/printer allows for configurations other than the one used by go/format / gofmt. It allows indenting with spaces and aligning with tabs; the tab width matters for at least one of those non-standard formats. As far as I can tell, the tab width specified in go/format is irrelevant, and setting it to other values doesn't break any of the tests. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/87illqzwym.fsf%40honnef.co.