Dear Jason, Thanks for the idea of using reflect. Do you know whether `reflect.ValueOf(a).UnsafePointer()` is somehow "safer" than `*(*uintptr)(unsafe.Pointer(&a))`?
reflect.DeepEqual will not work, since it just compares contents of the maps: https://go.dev/play/p/tE_qZI2cKEd All the best, Jochen On Tuesday, 18 July 2023 at 15:52:24 UTC+1 Jason Phillips wrote: > You can also use the reflect package rather than (directly) reaching for > unsafe. The reflect.DeepEqual function does something along the lines of: > https://go.dev/play/p/IVt0Z-mxugh > > On Tuesday, July 18, 2023 at 10:45:18 AM UTC-4 Jan Mercl wrote: > >> On Tue, Jul 18, 2023 at 4:35 PM Jochen Voss <joche...@gmail.com> wrote: >> >> > Is there a better way? >> >> I have never been here and please don't do this: >> https://go.dev/play/p/x4QYJubXMnQ >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/30202b52-554e-462e-aaa4-dfe7f4d23554n%40googlegroups.com.