--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/u9PmcdYmEIsTinPPzTNK6e3I1ANlGsvftmP4pKCptQj1Gupoz7wVr2F1BxcrApcL0Anoh-to1xJEkp4z6Y7RRtuNzBgAPEQFRnuYp4JCfSM%3D%40protonmail.com.
This is a known problem: https://github.com/golang/go/issues/8618I looks the root cause is reflect.TypeOf and ValueOf make the valuesreferenced by the arguments escape, though often this is over-cautious.