Descriptiongodoc: Allow examples for methods.
An example for a method M() of type T can be written as
func ExampleT_M() { ... }.
To differentiate between multiple examples for one function, type or
method a suffix with a lowercase start may be appended to the name
of the example function, e.g. ExampleFoo_basicUsage.
Fixes issue 2465.
Patch Set 1 #Patch Set 2 : diff -r adff3701bfc7 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r adff3701bfc7 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 4 : diff -r 778c06919be6 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 77404a124c34 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 648ada5634e3 https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 7 : diff -r e25954278b04 https://go.googlecode.com/hg/ #
Total comments: 1
MessagesTotal messages: 18
|