Standard library / log/slog

slog.Kind.String()

Return the human-readable kind name. Expected stdout: 'String\n'.

Formal Syntax & Structure

go syntaxgo
func (k Kind) String() string

Return Value

string

Return the human-readable kind name.

Working Example

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