FAQ
Thanks for comments, iant, dfc and minux.
Looks like addressed questionable things on this CL are;

Q1. Example functions should run wherever go runs
No: because go testing says "Example functions without output comments
are compiled but not executed."
Yes: because it's expected as copy-n-paste examples

Q2. Example functions should be compliant with go testing and/or godoc
No: free forms are necessities for consolidated example functions
Yes: because godoc dislikes free forms

Hm, well... okay.
I'll follow adg's opinion because examples are part of godoc.

https://codereview.appspot.com/6591076/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 16, '12 at 7:00a
activeOct 16, '12 at 7:00a
posts1
users1
websitegolang.org

1 user in discussion

Mikioh Mikioh: 1 post

People

Translate

site design / logo © 2022 Grokbase