FAQ
i think the spaces are intentional. a lot of thought has gone into
indenting the reslicing operator in Go: gofmt will remove spaces
around ":" if both sides are constants ([0:3]) or simple function
calls ([0:len(a)]), but to aid clarity, gofmt will insert spaces
around ":" if there are any arithmetic operations involved. but even
though gofmt will remove spaces if it saw this in real code, it
doesn't touch comments.

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 1, '13 at 6:42p
activeOct 1, '13 at 7:22p
posts3
users2
websitegolang.org

2 users in discussion

Rh: 2 posts Andrey mirtchovski: 1 post

People

Translate

site design / logo © 2022 Grokbase