go/gocomments#TOC-Initialisms says initialisms or acronyms (e.g. "URL" or "NATO") have a consistent case: URL or url.
But sometimes we have ToR (top-of-rack switch), QoS (quality of service), or DoS (denial of service) that are commonly written with a combination of upper- and lower-case letters in prose. How should we include them in identifiers, especially at the beginning of exported identifiers, and in the middle of any? "disconnectedToRs" or "disconnectedTORs" (or even "disconnectedTors")? (You may think the last one is pointless, but once something gets into the protobuf format, lint doesn't like "disconnected_ToRs" in protobuf field names and forces me to write "disconnected_tors", which the protobuf compiler converts to "DisconnectedTors". One reason I don't like having to worry about these problems.) -- 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. For more options, visit https://groups.google.com/d/optout.