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/
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
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