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
funcmain() {
// topStruct is a pointer to TopLevelStructtopStruct:=new(TopLevelStruct)
fmt.Printf("before using allocate.Zero: %v\n", topStruct)
// try to allocate.Zero a pointer to pointer// should be: allocate.Zero(topStruct)allocate.Zero(&topStruct)
fmt.Printf("post allocate.Zero: %v\n", topStruct)
fmt.Printf("topStruct.MyEmbeddedStruct.SomeInt==%d\n", topStruct.MyEmbeddedStruct.SomeInt)
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: