[go-nuts] Re: When will the official encoding/json package support parsing json5?

2022-03-20 Thread jan.f...@gmail.com
Just googled for "json5 golang" and there seem to be several 3rd party implementations available. Can you not use one of those? söndag 20 mars 2022 kl. 14:27:05 UTC skrev Brian Candler: > If you're going down that route, you could also consider jsonnet > (which does have

Re: [go-nuts] Any good idea to stop the goroutine as soon as possible?

2022-01-12 Thread jan.f...@gmail.com
Just a related observation. I don't think you need to have a select statement to check if a context is cancelled. I think it is sufficient to just check if ctx.Err() gives a result different from nil. >From the API documentation for Context (https://pkg.go.dev/context#Context): // If Done is

Re: [go-nuts] Re: go build prints gc traces

2021-09-14 Thread jan.f...@gmail.com
tisdag 14 september 2021 kl. 02:48:15 UTC+2 skrev Ian Lance Taylor: > Sounds related to https://golag.org/issue/27628. The build cache > caches the output of the tools. You may have gotten a build cache > entry with GODEBUG set, and that kept being used even though GODEBUG > was not set later.

[go-nuts] Re: go build prints gc traces

2021-09-13 Thread jan.f...@gmail.com
Hi again, Removed ~/Library/Caches/go-build and the problem is now gone. Still I would like to know what caused this. Regards //Jan Flyborg måndag 13 september 2021 kl. 23:09:14 UTC+2 skrev jan.f...@gmail.com: > Hi everyone! > > Since I upgraded to Go 1.17.1 on macOS, it s

[go-nuts] go build prints gc traces

2021-09-13 Thread jan.f...@gmail.com
Hi everyone! Since I upgraded to Go 1.17.1 on macOS, it seems like whenever I run the compiler, it prints out GC traces just like it was invoked with GODEBUG=gctrace=1. It might look like this: $ go build main.go # github.com/pion/dtls/v2/pkg/crypto/clientcertificate gc 1 @0.004s 6%:

[go-nuts] How to get hold of GOARM at runtime?

2021-01-19 Thread jan.f...@gmail.com
Hi, Short question: GOARCH and GOOS is available from the runtime package, but how do I get hold of the corresponding variable GOARM at runtime? Best Regards //Jan Flyborg -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe