Commit 13960ae8 authored by David Symonds's avatar David Symonds

exvar: new Timer var type.

R=rsc
APPROVED=r
DELTA=146  (142 added, 0 deleted, 4 changed)
OCL=31654
CL=31716
parent a9be3f46
......@@ -41,7 +41,7 @@ path.install: strings.install
rand.install:
reflect.install: runtime.install strconv.install strings.install
regexp.install: bytes.install container/vector.install io.install os.install runtime.install utf8.install
rpc.install: bufio.install gob.install http.install io.install log.install net.install os.install reflect.install strconv.install strings.install sync.install time.install unicode.install utf8.install
rpc.install: bufio.install gob.install http.install io.install log.install net.install os.install reflect.install strconv.install strings.install sync.install unicode.install utf8.install
runtime.install:
sort.install:
strconv.install: bytes.install math.install os.install utf8.install
......
......@@ -162,6 +162,14 @@ func Get(name string) Var {
return nil
}
// RemoveAll removes all exported variables.
// This is for tests; don't call this on a real server.
func RemoveAll() {
mutex.Lock();
defer mutex.Unlock();
vars = make(map[string] Var);
}
// Convenience functions for creating new exported variables.
func NewInt(name string) *Int {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment