Re: [go-nuts] Where can I find the Golang spec source code?

2019-04-02 Thread Dan Kortschak
That is the correct file, just at the wrong commit, here it is for go1.12 https://github.com/golang/go/blob/release-branch.go1.12/doc/go_spec.html On Wed, 2019-04-03 at 11:11 +0800, 李健 wrote: > The web page is at: https://golang.org/ref/spec > > I've searched Google/GitHub but can't find its

Re: [go-nuts] Where can I find the Golang spec source code?

2019-04-02 Thread Ian Lance Taylor
On Tue, Apr 2, 2019 at 8:22 PM 李健 wrote: > > The web page is at: https://golang.org/ref/spec > > I've searched Google/GitHub but can't find its source code, something > like `golang_spec.md`. > > In golang/go GitHub repo, I found a file named >

[go-nuts] Where can I find the Golang spec source code?

2019-04-02 Thread 李健
The web page is at: https://golang.org/ref/spec I've searched Google/GitHub but can't find its source code, something like `golang_spec.md`. In golang/go GitHub repo, I found a file named `go_spec.html`(https://github.com/golang/go/blob/master/doc/go_spec.html), but its contents don't match the

[go-nuts] Re: SPIFFE certificate verification (SVID) failure

2019-04-02 Thread bradleyjames
Have you reached out to the SPIFFE and SPIRE folks? https://github.com/spiffe/spiffe https://github.com/spiffe/spire SPIRE, a reference implementation, is written in go. They may be familiar with the issue. On Monday, April 1, 2019 at 11:51:20 AM UTC-5, Dheeraj Gedam wrote: > > Hi, > > I am

[go-nuts] Re: How to pass http.ResponseWriter while writing test case in Go

2019-04-02 Thread bradleyjames
> > > The documentation/examples of the net/http/httptest package might > help, in particular, the ResponseRecorder. > > https://golang.org/pkg/net/http/httptest/#ResponseRecorder > > Tacking on, here's an example: https://golang.org/pkg/net/http/httptest/#example_ResponseRecorder. The

Re: [go-nuts] Re: Is there a reason the cert used by httptest.StartTLSServer(...) is not valid for localhost?

2019-04-02 Thread Wojciech S. Czarnecki
On Tue, 2 Apr 2019 08:38:54 -0700 (PDT) Daniel Cormier wrote: > Since this conversation didn't go anywhere, I opened an issue > . +golang-nuts >> Is there a reason the cert used by httptest.StartTLSServer(...) This is a key **pair** that is

Re: [go-nuts] How to pass http.ResponseWriter while writing test case in Go

2019-04-02 Thread 'Kevin Chowski' via golang-nuts
Agreed - attempting to obtain 100% test coverage with only small-scale tests is not always the best usage of engineering time. Not just writing it the first time, but taking into account maintenance as well. On Monday, April 1, 2019 at 12:07:03 PM UTC-7, Robert Engels wrote: > > I wouldn’t test

Re: [go-nuts] Change in virtual memory patterns in Go 1.12

2019-04-02 Thread 'Austin Clements' via golang-nuts
Hi Rémy. We often fight with vm.max_map_count in the runtime, sadly. Most likely this comes from the way the runtime interacts with Linux's transparent huge page support. When we scavenge (release to the OS) only part of a huge page, we tell the OS not to turn that huge page frame back into a huge

Re: [go-nuts] modules usage help

2019-04-02 Thread T L
This is glide.lock file at github.com/projectcalico/libcalico...@v3.7.0-0.dev+incompatible , and this is the go.mod file after running go build: module a.b.c/ddd require (

[go-nuts] Change in virtual memory patterns in Go 1.12

2019-04-02 Thread Rémy Oudompheng
Hello, In a large heap program I am working on, I noticed a peculiar change in the way virtual memory is reserved by the runtime : with comparable heap size (about 150GB) and virtual memory size (growing to 400-500GB probably due to a kind of fragmentation), the number of distinct memory mappings