Standard library / reflect
reflect.Struct
Kind constant identifying struct. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Struct Kind = 25Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.TypeOf(struct{}{}).Kind() == reflect.Struct) }