[go-nuts] go mod vendor without updating packages

2021-05-11 Thread Sankar
Hi, I have some packages with some versions in my `go.mod` including some indirect dependencies that are needed by some of my direct dependencies. In this, there is a particular version of grpc that I want to use (and not the latest). I add the specific version of grpc I want by: go mod edit

[go-nuts] proposal: infer module name via version control when running `go mod init`

2021-05-11 Thread Jon Calhoun
Hi everyone, Posting this here to get some general feedback before consuming anyone's time with a proposal on Github. The current behavior in the Go tooling is to infer the module name when running "go mod init" (without a name) inside of $GOPATH/src/github.com/username/repo. Here is an exampl

[go-nuts] Re: mime/multipart.Writer: Support closing a Part immediately

2021-05-11 Thread 'Damien Neil' via golang-nuts
A multipart.Writer exists in one of three states currently: 1. CreatePart has not been called. 2. CreatePart has been called at least once, but Close has not been called yet. 3. Close has been called. This proposal would introduce a fourth state: 4. FlushLastPart has been called. CreatePart or

Re: [go-nuts] time.Format with "Month Year" format incorrectly displayed

2021-05-11 Thread Tom Limoncelli
On Wed, May 5, 2021 at 5:38 PM Ian Lance Taylor wrote: > > You wrote 2009 where you need to write 2006. > > Ian > I've always felt that the documentation could be more clear about this. The documentation is technically accurate, but frequently leads a new user to assume that (for example) any y