[go-nuts] fmt.Printf Go-syntax formated representation of the value

2023-04-27 Thread Jérôme LAFORGE
Hello, In my unit tests when expected is not the actual result, I like display actual value with Go-syntax. For example: if got != expected { t.Errorf(" %#v", got) // []string{"blah','blah"} } But it want to know if there is elegant way to display as formatted on multi-lines (a kind of inde

Re: [go-nuts] Output format of IRNode.

2023-04-27 Thread Ian Lance Taylor
On Wed, Apr 26, 2023 at 4:21 PM Chris Zhang wrote: > > I am trying to dump certain IRNode in src/cmd/internal/ssagen/ssa.go file in > 1.19. Suppose n is an IRNode, then I tried `fmt.Printf(“%+v”, n)`, and I can > see something like > > .NAME-strong.u esc(no) Class:PPARAM Offset:24 OnStack Us

[go-nuts] Gopayloader - New golang HTTP load testing tool

2023-04-27 Thread 'Dominic Riordan' via golang-nuts
Hi, I've just released a new HTTP/S benchmarking tool; 235% quicker than k6. https://github.com/domsolutions/gopayloader Supports HTTP/1, HTTP/2, HTTP/3. Cross-platform. Achieves high RPS of > 50k. Supports JWT generation for load testing jwt authenticated endpoints. Please give it a tr

[go-nuts] http.Server ConnState behavior question

2023-04-27 Thread Andrew Athan
I could go read the source code so thanks in advance for saving me that step. Part of the reason I"m writing here is to also understand the recommended pattern... Does StateActive imply the handler function will definitely be called, or can this state occur without the Handler ever being called

[go-nuts] [security] Go 1.20.4 and Go 1.19.9 pre-announcement

2023-04-27 Thread announce
Hello gophers, We plan to issue Go 1.20.4 and Go 1.19.9 during US business hours on Tuesday, May 2. These minor releases include PRIVATE security fixes to the standard library, covering the following CVEs: - CVE-2023-24539 - CVE-2023-24540 - CVE-2023-29400 Following our se

[go-nuts] should goimports ignore directories starting with "."

2023-04-27 Thread Greg Lowe
The recommend approach caching go modules is to create a ".go" directory in the top level of a project. See: https://docs.gitlab.com/ee/ci/caching/#cache-go-dependencies go test, go vet, go list and staticcheck ignore this directory because is starts with ".". We use goimports within our pipel

[go-nuts] Help me study resources or guides

2023-04-27 Thread Nyilynn Htwe
I am starting to learn GO programming language with this course . Can you all guide me how to learn and how to be geek at Go? Thank you for reading -- You received this message because you are subscribed to the Google Groups "golang-nuts