Standard library / log/slog

slog.LevelInfo

Conventional info severity level. Expected stdout: '0\n'.

Formal Syntax & Structure

go syntaxgo
const LevelInfo Level = 0

Working Example

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