Search for "golang escape to heap" and you'll get lots of explanation and examples.
On Friday, 12 February 2021 at 05:59:00 UTC cuiw...@gmail.com wrote: > > https://github.com/golang/go/blob/c31540364c2bc3bdb7800cfc344d85c2c9df3893/src/cmd/compile/internal/gc/main.go#L654 > what is captured by value not esacpe means here, can you show a demo code? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c95eed51-9169-4432-a2f6-6fd02fd8e63dn%40googlegroups.com.