[go-nuts] Tracing across local subprocesses?

2022-02-17 Thread Matt Mueller
Hi there, I was wondering if anyone has a solution for tracing across local subprocesses in Go? Can the standard library do this somehow? OpenTelemetry seems a bit overkill for this use case. Thanks! Matt -- You received this message because you are subscribed to the Google Groups "golang-n

[go-nuts] Re: What goes wrong when embedding goroutines inside a for loop?

2022-02-17 Thread jake...@gmail.com
I think this explains it pretty well: Common Mistakes: Using goroutines on loop iterator variables On Thursday, February 17, 2022 at 11:45:39 AM UTC-5 yan.z...@gmail.com wrote: > package main > impor

Re: [go-nuts] What goes wrong when embedding goroutines inside a for loop?

2022-02-17 Thread Jan Mercl
On Thu, Feb 17, 2022 at 5:44 PM Zhaoxun Yan wrote: This goes wrong: jnml@3900x:~/tmp$ cat main.go package main import "fmt" func main() { targetIndice := make([]int, 3) targetIndice[0] = 5 targetIndice[2] = 4

Re: [go-nuts] What goes wrong when embedding goroutines inside a for loop?

2022-02-17 Thread Ian Davis
On Thu, 17 Feb 2022, at 5:20 AM, Zhaoxun Yan wrote: > package main > import "fmt" > > func main() { > targetIndice := make([]int, 3) > targetIndice[0] = 5 > targetIndice[2] = 4 > > for i,n := range targetIndice{ > fmt.Printf("%d : %d \n", i, n) > } > > c :

[go-nuts] Go 1.18 Release Candidate 1 is released

2022-02-17 Thread Dmitri Shuralyov
Hello gophers, We have just released go1.18rc1, a release candidate version of Go 1.18. It is cut from release-branch.go1.18 at the revision tagged go1.18rc1. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable. Re

[go-nuts] What goes wrong when embedding goroutines inside a for loop?

2022-02-17 Thread Zhaoxun Yan
package main import "fmt" func main() { targetIndice := make([]int, 3) targetIndice[0] = 5 targetIndice[2] = 4 for i,n := range targetIndice{ fmt.Printf("%d : %d \n", i, n) } c := make(chan int) for i, n:= range targetIndice{ go func(){

[go-nuts] Returning empty string in chi.URLParam function

2022-02-17 Thread Денис Мухортов
Idk why its working like that, but if using r.Url.Query().Get("smthg") works fine https://play.golang.com/p/pJ_CZyR8NT- https://play.golang.com/p/ixuHln2JirB -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] License of the design documents

2022-02-17 Thread Manlio Perillo
What is the license of the Go design documents? The LICENSE file in the proposal repository is the Go License, but there is no copyright notice in the documents. Thanks Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from