Commit e8f01e5c authored by David Symonds's avatar David Symonds

expvar: document that the Var interface's String method should return a valid JSON value.

Change-Id: If4e740f3dbef4053355542eebdd899b3099d872c
Reviewed-on: https://go-review.googlesource.com/21525Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent 869e5765
......@@ -38,6 +38,7 @@ import (
// Var is an abstract type for all exported variables.
type Var interface {
// String returns a valid JSON value for the variable.
String() string
}
......
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