Interface Kind Variable

As reading through reflect package, I noticed that it defined an interface kind.


I am wondering what kind of variable will return the Interface kind? I tried the following codes, but all I got is the data type that implementes the interface.

package main

import (

type People interface {

type Person struct {
	name string
	age int

func main() {
	var a People = Person{"456", 38}

func (p Person) change_name() { = "123"

// output: struct

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.