假设在第3方库中,我们有一个接口(interface)和一个实现该接口(interface)的结构。我们还假设有一个函数将ParentInterface作为参数,它对不同的类型有不同的行为。typeParentInterfaceinterface{SomeMethod()}typeParentStructstruct{...}funcSomeFunction(pParentInterface){switchx:=p.Type{caseParentStruct:return1}return0}在我们的代码中,我们想使用这个接口(interface),但要使用我们的增强行为,所以我们将它嵌