Re: [go-nuts] Language Feature Proposal: define

2016-08-24 Thread tommy xiao
yes, the type is you want. 2016-08-21 19:16 GMT+08:00 Henry : > Uh oh. You're right. Thanks for reminding me. Somehow I missed that. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails

Re: [go-nuts] how to resolve the warning about composite literal uses unkeyed fields .

2016-08-23 Thread tommy xiao
s.Image) > opts := cluster.ImageFilterOptions{ > ImageListOptions: apitypes.ImageListOptions{ > All: boolValue(r, "all"), > MatchName: r.FormValue("filter"), > Filters: filters, > }, > } > > > On Mon, Aug 22, 2016 at 6:35 PM tommy xiao wrote: > >&

[go-nuts] how to resolve the warning about composite literal uses unkeyed fields .

2016-08-22 Thread tommy xiao
the go vet always report composite literal uses unkeyed fields warning, $ go vet `go list ./...|grep -v /vendor/` api/handlers.go:189: github.com/docker/swarm/cluster.ImageFilterOptions composite literal uses unkeyed fields exit status 1 scheduler/filter/dependency_test.go:60: github.com/docker/sw