Standard library / runtime/metrics
metrics.Value
Tagged metric value; inspect Kind before choosing a typed accessor. A zero value has KindBad. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Value struct {}Working Example
Example Snippetgo
package main
import ( "fmt" "runtime/metrics")
func main() { var v metrics.Value; fmt.Println(v.Kind() == metrics.KindBad) }