I try to extend the base struct, like this:
import (
"fmt"
)
type A struct {
A bool
C bool
}
type B struct {
A
B bool
}
func main() {
fmt.Println("Hello, playground")
a := A{
A: false,
C: false,
}
b := B{
a,
true,
}
fmt.Print(b)
}
But it creates inherit struct. The output of this code is: {{false false} true}
But I would like to get {false false true}
Is it possible?