Embedding without specific methods?

Okay, I did my example wrong. It won’t cast. But there is an error in your example as well. Your panic code should belong to noFoo. I think it’s related to your digging into TCP and splicing here. It’s done this way, so io.Copy won’t cast it either. ReadFrom or standard copy algorithm will be used instead.