mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
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>
This commit is contained in:
parent
869e576517
commit
e8f01e5cae
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue