From: David Symonds Date: Tue, 5 Apr 2016 05:19:27 +0000 (+1000) Subject: expvar: document that the Var interface's String method should return a valid JSON... X-Git-Tag: go1.7beta1~903 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e8f01e5cae3d72ea78c06d95a5ac622076f455ed;p=gostls13.git 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 --- 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 }