Standard library / log/slog

slog.KindFloat64

Kind discriminator for Float64 values; inspect Kind before using typed accessors. Expected stdout: '3\n'.

Formal Syntax & Structure

go syntaxgo
const KindFloat64 Kind = 3

Working Example

Example Snippetgo
package main
import (  "fmt"  "log/slog")
func main() { fmt.Println(int(slog.KindFloat64)) }
Go Reference