[go-nuts] I cannot get rid of false and misleading "go to latest" button on pkg.go.dev

2022-05-28 Thread Sean Foley
Hello all, If you go to my module https://pkg.go.dev/github.com/seancfoley/ipaddress-go then everything looks fine. when you go to a subfolder https://pkg.go.dev/github.com/seancfoley/ipaddress-go/ipaddr it things that a pseudo-version is the latest, not the correct version 1.2.0. When you

[go-nuts] Go package for flexible deep-hashing of data structures

2022-05-28 Thread Maurizio Vitale
new to go here (well, returning to go after 10+ years and not very deeply into it even back then) I'm looking for a package similar in spirit to go-cmp, but for hashing. Among the features I'm looking for are optionally ignore some fields, sort slices before hashing, convert maps to slices of k

Re: [go-nuts] uber handler to collect stacktrace when program crashing

2022-05-28 Thread 'Sean Liao' via golang-nuts
I believe this is asking for a single handler that will apply to all goroutines, to which the answer is no such feature exists - sean On Sat, May 28, 2022, 03:09 Ian Lance Taylor wrote: > On Fri, May 27, 2022 at 10:42 AM Aggarwal Sre > wrote: > > > > Is there a recommended pattern besides addi

Re: [go-nuts] Generics

2022-05-28 Thread Jérôme LAFORGE
Thanks Sebastien Le vendredi 27 mai 2022 à 19:21:43 UTC+2, Sebastien Binet a écrit : > what you may be looking at is (in the words of Rog Peppe) "structural > type constraints": > > https://go.dev/play/p/HiFc9CUfI7P > > -s > > On Fri May 27, 2022 at 18:32 CET, Martin Schnabel wrote: > > the reaso