Re: [go-nuts] DeepCloning a datastructure

2020-04-16 Thread Hugh Emberson
And, I realized just after posting that your data structure has private fields in it as https://github.com/mohae/deepcopy won't work on those. On Thu, Apr 16, 2020 at 9:02 PM Hugh Emberson wrote: > On Thu, Apr 16, 2020 at 2:07 PM Marc Schöchlin wrote: > >> i am searching for a co

Re: [go-nuts] DeepCloning a datastructure

2020-04-16 Thread Hugh Emberson
On Thu, Apr 16, 2020 at 2:07 PM Marc Schöchlin wrote: > i am searching for a convenient way to deep-clone a nested datastructure. > I've used https://github.com/mohae/deepcopy with some success. YMMV. Regards, Hugh -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] expvar when not using global mux

2016-08-21 Thread Hugh Emberson
You can access the global mux as 'http.DefaultServeMux' and since a mux is a 'http.Handler' you can add it to another mux like this: myMux.Handle("/debug/", http.DefaultServeMux) On Sun, Aug 21, 2016 at 10:46 AM, Amit Upadhyay wrote: > expvar registers expvarHandler as