How does go determine whether two interface types are the same and assign one interface to the other interface

how go determines whether two interface types are the same, and assigns one interface to the other interface

May.27,2022

to sum up:
1. Determine whether the type is the same

type I interface {}

var a,b I
a = 1
b = 2

fmt.Sprintf("%-sharpv\n", reflect.TypeOf(a).Kind() == reflect.TypeOf(b).Kind())
  1. what is your specific problem with assigning one interface to another interface?
Menu