Re:Decorators in Go using embedded structs
by inlined on Wednesday October 23, 2019 @03:58PM
(#21338279)
This is the way that “optional” methods work in Go. For example, go decided not to rebuild the entire HTTP library to support web sockets. Instead, supported servers will pass an http.Request that also implements http.Hijacker for letting a request stay alive after the Handler closure
[ Parent
| on HN ]