So just Value(...) then? Of-course I've implemented an adapter with no extra fields, just with some methods to work with Value(...).
On Sunday, May 7, 2017 at 2:41:31 PM UTC+4:30, Peter Mogensen wrote: > > > > On 2017-05-07 11:58, dc0d wrote: > > What's the proper way of defining a custom context? > > Is it enough to wrap the methods of parent `context.Context`? > > I did some experiments trying to extend the context.Context interface. > One quickly runs into endless troubles due to the reliance on global > functions an the internal types of the context package. > > /Peter > > -- 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. For more options, visit https://groups.google.com/d/optout.