AP
Size: a a a
AP
N
type Context struct {не могу почему то взвать метод addChild из пакета main
parent *Context
childs []*Context
}
func (this Context) addChild(context *Context) {
context.parent = &this
this.childs = append(this.childs, context)
}
context.addChild undefined (type context.Context has no field or method addChild)
с
❌
N
❌
с
N
с
VS
N
VS
S
AE
panic: runtime error: makeslice: len out of range [recovered]
panic: runtime error: makeslice: len out of range
S