我正在研究一個示例程序來回答這裏的另一個問題,並發現自己有些困惑,因爲下面的代碼不會編譯; https://play.golang.org/p/wxBGcgfs1o package main
import "fmt"
type A struct {
FName string
LName string
}
type B struct {
A
}
fu
我有這幾種: type Value interface{}
type NamedValue struct {
Name string
Value Value
}
type ErrorValue struct {
NamedValue
Error error
}
我可以使用使用v := NamedValue{Name: "fine", Valu