Standard library / log/slog

slog.KindTime

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

Formal Syntax & Structure

go syntaxgo
const KindTime Kind = 6

Working Example

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