1
0
mirror of https://github.com/golang/go synced 2024-10-03 07:21:21 -06:00
go/src
Volker Dobler cb7d6e37d8 godoc: 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 #2465.

R=golang-dev, adg, r, rsc, duperray.olivier, r
CC=golang-dev
https://golang.org/cl/5440100
2011-12-16 10:01:54 +11:00
..
cmd godoc: Allow examples for methods. 2011-12-16 10:01:54 +11:00
lib9 lib9: fix windows build 2011-11-07 14:16:00 -05:00
libbio
libmach os: OS-dependent bits to support NetBSD. 2011-12-15 12:19:19 -05:00
pkg testing: trim spaces before comparing example output 2011-12-16 09:43:58 +11:00
all-qemu.bash build: update all-qemu.bash 2011-07-28 13:04:30 -04:00
all.bash
clean.bash test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
env.bash env.bash: export CGO_ENABLED so cgo tests run 2011-12-13 10:47:51 +11:00
make.bash build: fix check for selinux's allow_execstack on Fedora 16 2011-11-11 16:41:37 -05:00
Make.ccmd build: explain $PWD use 2011-06-22 17:00:46 -04:00
Make.clib build: explain $PWD use 2011-06-22 17:00:46 -04:00
Make.cmd build: pass $GCFLAGS to compiler 2011-10-18 14:55:10 -04:00
Make.common
Make.inc build: disable cgo on Windows/amd64 2011-12-13 14:20:38 -05:00
Make.pkg cgo: add support for callbacks from dynamic libraries 2011-11-22 17:57:49 +03:00
quietgcc.bash build: handle spaces in $USER 2011-07-28 13:04:52 -04:00
run.bash test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
sudo.bash sudo.bash: print error/exit if problem with /usr/local/bin 2011-09-01 17:24:32 +10:00
version.bash version.bash: update VERSION on -save if already present 2011-08-24 22:10:25 -03:00