Standard library / log/slog

slog.Kind

Discriminator describing the representation of a Value. Expected stdout: 'Bool\n'.

Formal Syntax & Structure

go syntaxgo
type Kind int

Working Example

Example Snippetgo
package main
import (  "fmt"  "log/slog")
func main() { var k slog.Kind = slog.KindBool; fmt.Println(k) }
Go Reference