Standard library / runtime/metrics
metrics.ValueKind
Identifies the representation of a metric Value. Code should handle unknown kinds rather than assuming every future kind is numeric. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type ValueKind intWorking Example
Example Snippetgo
package main
import ( "fmt" "runtime/metrics")
func main() { var k metrics.ValueKind = metrics.KindUint64; fmt.Println(k == metrics.KindUint64) }