Standard library / log/slog
slog.Level
Integer severity used to filter events. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Level intWorking Example
Example Snippetgo
package main
import ( "fmt" "log/slog")
func main() { var l slog.Level = slog.LevelWarn; fmt.Println(l > slog.LevelInfo) }