Standard library / log/slog

slog.TimeKey

Built-in handler attribute key for time. Expected stdout: 'time\n'.

Formal Syntax & Structure

go syntaxgo
const TimeKey = "time"

Working Example

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