]> Cypherpunks repositories - gostls13.git/commit
Initial cut at an "exported variables" (exvar) package.
authorDavid Symonds <dsymonds@golang.org>
Mon, 20 Apr 2009 04:17:27 +0000 (21:17 -0700)
committerDavid Symonds <dsymonds@golang.org>
Mon, 20 Apr 2009 04:17:27 +0000 (21:17 -0700)
commit3cc702ba60587aaefbc953e93eedbe1f9dd9166e
treecfa851901e36a3a35b7d9ba6555c957f97308ac5
parentf1820b50ff31435f237e706edb39166c6097ada5
Initial cut at an "exported variables" (exvar) package.

This handles integer-valued vars in a singleton struct, and exports functions
for incrementing, setting and getting those vars, as well as rendering all the
vars in a standard format.

Demonstrate the use of the exvar package in the http/triv server.

R=dcross,r
APPROVED=r
DELTA=122  (122 added, 0 deleted, 0 changed)
OCL=27617
CL=27622
src/lib/Makefile
src/lib/exvar.go [new file with mode: 0644]
src/lib/exvar_test.go [new file with mode: 0644]
src/lib/http/triv.go