You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Go language has this cool feature for struct composition where if you put one struct after another's values, its values are inherited into the other.
typefoo1struct {
barstring
}
typefoo2struct {
bazstringfoo1// foo2 now also has the field "bar" inherited from foo1
}