[go-nuts] Context on one-shot structs

2021-01-12 Thread 'Jean de Klerk' via golang-nuts
Hi all, I'm looking into how contexts are used, and wondering: does anybody know of an idiomatic use of context on a struct for the sake of a one-shot? (a one-shot being some struct that gets used once, like an RPC or http request) For example, http.Request has a context on its struct. But, I

[go-nuts] Re: Context on one-shot structs

2021-01-12 Thread 'Jean de Klerk' via golang-nuts
Er, lifetime of the struct * On Tue, Jan 12, 2021 at 8:11 AM Jean de Klerk wrote: > Hi all, > > I'm looking into how contexts are used, and wondering: does anybody know > of an idiomatic use of context on a struct for the sake of a one-shot? > > (a one-shot being some struct that gets used

Re: [go-nuts] require statements in multi module repositories

2018-11-09 Thread 'Jean de Klerk' via golang-nuts
Thanks a million Paul. Yes, they were resolved (for posterity, in https://github.com/golang/go/issues/28685). On Fri, Nov 9, 2018 at 10:11 AM, Paul Jolly wrote: > > I've played around with go modules in a multi module repository, and I'm > running into oddities. The main confusion is that I