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() stringReturn 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()) }