Standard library / log/slog
slog.Value.Kind()
Inspect the value kind. Expected stdout: 'Int64\n'.
Formal Syntax & Structure
go syntaxgo
func (v Value) Kind() KindReturn Value
Kind
Inspect the value kind.
Working Example
Example Snippetgo
package main
import ( "fmt" "log/slog")
func main() { fmt.Println(slog.IntValue(2).Kind()) }