Standard library / runtime/metrics

metrics.KindUint64

Unsigned integer metric representation. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const KindUint64 ValueKind

Working Example

Example Snippetgo
package main
import (  "fmt"  "runtime/metrics")
func main() {  s := []metrics.Sample{{Name: "/gc/heap/allocs:bytes"}}  metrics.Read(s)  fmt.Println(s[0].Value.Kind() == metrics.KindUint64)}
Go Reference