]> Cypherpunks repositories - gostls13.git/commit
Remake exvar package to be more Go-ish.
authorDavid Symonds <dsymonds@golang.org>
Mon, 4 May 2009 22:14:22 +0000 (15:14 -0700)
committerDavid Symonds <dsymonds@golang.org>
Mon, 4 May 2009 22:14:22 +0000 (15:14 -0700)
commit2f284948af29a8333f14811a9458d420529980a8
treec55ba61980d48505bfe3a97780010b9ffa6aa622
parent19c239c9afc6c33d8e1a8eca0ecf3cc1a3642a45
Remake exvar package to be more Go-ish.

It now exports a Var interface (anyone can export their own custom var types now), so users need to create and manage their own vars and mark them as exportable via the Publish function. They are exposed via /debug/vars.

R=r,rsc
APPROVED=r
DELTA=605  (314 added, 186 deleted, 105 changed)
OCL=28143
CL=28239
src/lib/Makefile
src/lib/exvar.go
src/lib/exvar_test.go
src/lib/http/triv.go