diff options
author | David Symonds <dsymonds@golang.org> | 2016-04-05 15:19:27 +1000 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2016-04-05 05:50:56 +0000 |
commit | e8f01e5cae3d72ea78c06d95a5ac622076f455ed (patch) | |
tree | e987415763ea6bd244d9bd90f27329639b32c8e5 /src/expvar | |
parent | 869e576517f825aecdc8730b0d22f8d6b59bd749 (diff) | |
download | go-e8f01e5cae3d72ea78c06d95a5ac622076f455ed.tar.gz go-e8f01e5cae3d72ea78c06d95a5ac622076f455ed.zip |
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/21525
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/expvar')
-rw-r--r-- | src/expvar/expvar.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expvar/expvar.go b/src/expvar/expvar.go index d675a0230c..1ec85006b4 100644 --- a/src/expvar/expvar.go +++ b/src/expvar/expvar.go @@ -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 } |