mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +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
1 changed files with 1 additions and 0 deletions
|
@ -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