Re: [go-nuts] Do you check in vendor packages?

2017-09-17 Thread gurpartap
d rewinding manually when needed (which isn't often, is it?). Regards, Gurpartap Singh On Saturday, September 16, 2017 at 12:21:38 AM UTC+5:30, Will Faught wrote: > > Kevin, Henrik: > > Thanks for replying! > > Have you ever had to check in very large dependencies? Would you

Re: [go-nuts] Re: Go 2 suggestion - Types like "int?"

2017-08-25 Thread gurpartap
age := try getAge() // => panic("ERR") >>> } >>> >>> func main() { >>> // although getAge() returns a non-optional, it >>> // gets is automatically wrapped in an optional >>> // when using `try?`. >>> // >

[go-nuts] Re: Go 2 suggestion - Types like "int?"

2017-08-22 Thread gurpartap
o-values for non-optionals). I think an ideal first step would be the community blessing and adopting en masse some Optional "generator". Second step would be to vouch for generics with this use case. And then implement an actual generic like `type Optional struct { Value T; HasValue bool

[go-nuts] Re: go get: You are not currently on a branch

2016-10-14 Thread gurpartap
cd $GOPATH/src/github.com/mattn/go-sqlite3; git pull --ff-only origin master Add `origin master` suffix to the command suggested by the error. (master or otherwise) The error occurs because the repo got a new branch since your last go get. On Saturday, May 28, 2016 at 11:12:27 PM UTC+5:30, To