From e8f01e5cae3d72ea78c06d95a5ac622076f455ed Mon Sep 17 00:00:00 2001 From: David Symonds Date: Tue, 5 Apr 2016 15:19:27 +1000 Subject: [PATCH] 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 --- src/expvar/expvar.go | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.48.1