Re: [go-nuts] gomock - why do recorder methods use interface{}?

2017-04-05 Thread Julian Phillips
On 05/04/2017 18:06, Jonathan Yu wrote: Hi everyone, I've been using gomock to generate mock objects (in source mode), and it's been pretty great - way better than maintaining similar code on my own. One thing that I find curious, though, is that expectations are recorded using a generic int

Re: [go-nuts] Nil interface/pointer

2016-09-11 Thread Julian Phillips
On 12/09/2016 00:27, Dan Kortschak wrote: On Sun, 2016-09-11 at 19:41 +1000, Kiki Sugiaman wrote: Not exactly a solution for the faint hearted, hah! It's long, but not complicated, and in the context of Axel's comment would be placed in a helper of some variety. For those at home, it's necess

Re: [go-nuts] help with bazil.org/fuse

2016-09-07 Thread Julian Phillips
On 07/09/2016 10:39, Dan Kortschak wrote: On Wed, 2016-09-07 at 09:22 +0100, Julian Phillips wrote: On 07/09/2016 01:08, Dan Kortschak wrote: > On Wed, 2016-09-07 at 09:05 +0930, Dan Kortschak wrote: >> > These are just the flags passed to open. If you want to act on the >> &

Re: [go-nuts] help with bazil.org/fuse

2016-09-07 Thread Julian Phillips
On 07/09/2016 01:08, Dan Kortschak wrote: On Wed, 2016-09-07 at 09:05 +0930, Dan Kortschak wrote: > These are just the flags passed to open. If you want to act on the > truncate flag, do it once within open, not on every single subsequent > call to write. > That makes sense. So, we're narrowing