Standard library / reflect
reflect.Interface
Kind constant identifying interface type; TypeOf on an interface normally reports its dynamic concrete type. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Interface Kind = 20Working Example
Example Snippetgo
package main
import ( "fmt" "io" "reflect")
func main() { fmt.Println(reflect.TypeFor[io.Reader]().Kind() == reflect.Interface) }