[go-nuts] Can go-dockerclient be built with go modules?

2018-08-11 Thread Joseph Lorenzini
All: Using vgo, I haven't been able to build a go package with this library. Using go 1.10, I can successfully build this library. https://github.com/fsouza/go-dockerclient When I attempt to vgo build, I get this error /Volumes/Repositories/go/pkg/mod/github.com/fsouza/go-dockerclient@v1.2.2/

[go-nuts] Re: How should I avoid - literal copies lock value from

2018-08-11 Thread jake6502
I don't see anything fundamentally wrong with using a *sync.Mutex as long as users always use New(). It allows Set to be passed by value, which is nice. But if you keep the mutex as a non pointer, then you probably want to pass a slice of set pointers: func (set *Set) Diff(sets []*Set) *Set Th

[go-nuts] Examples testing with two newline, but only one newline

2018-08-11 Thread zpsyhapcst
Hi https://play.golang.org/p/AIB-yJaExVu When I want to use examples to test my code, I find something odd. Example1 could pass, but Example2 failed --- FAIL: Example2 (0.00s) > got: > hello > . > > 123 > want: > hello > . > 123 > FAIL > exit status 1 It seems Examples could only show one newl