Re: [go-nuts] how is xml.Decoder.CharsetReader supposed to be held?

2022-05-06 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2022-05-06 at 15:55 -0700, Ian Lance Taylor wrote: > On Fri, May 6, 2022 at 3:07 AM 'Dan Kortschak' via golang-nuts > wrote: > > > > On Fri, 2022-05-06 at 11:22 +0200, Diego Joss wrote: > > > Does this work for you? > > > > > > https://go.dev/play/p/xLRawVhcRtF > > > > > > > Thanks. No,

Re: [go-nuts] how is xml.Decoder.CharsetReader supposed to be held?

2022-05-06 Thread Ian Lance Taylor
On Fri, May 6, 2022 at 3:07 AM 'Dan Kortschak' via golang-nuts wrote: > > On Fri, 2022-05-06 at 11:22 +0200, Diego Joss wrote: > > Does this work for you? > > > > https://go.dev/play/p/xLRawVhcRtF > > > > Thanks. No, the documents are in UTF-16, and the procinst will be too. > So it looks more

Re: [go-nuts] Re: GO program's memory footprint is confusing

2022-05-06 Thread Robert Engels
https://www.arp242.net/static-go.html > On May 5, 2022, at 11:27 PM, garenchan wrote: > > The binary file is not a dynamic executable. So I don't think that will > happen. > > 在2022年5月6日星期五 UTC+8 11:54:44 写道: >> Are you certain that on the low memory instance there isn’t another process

Re: [go-nuts] how is xml.Decoder.CharsetReader supposed to be held?

2022-05-06 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2022-05-06 at 11:22 +0200, Diego Joss wrote: > Does this work for you? > > https://go.dev/play/p/xLRawVhcRtF > Thanks. No, the documents are in UTF-16, and the procinst will be too. So it looks more like this https://go.dev/play/p/4IcXNI3yd2M. If I pull the proc inst out of the UTF-16,

Re: [go-nuts] Re: DeepCloning a datastructure

2022-05-06 Thread Zhaoxun Yan
Yes there are two open source packages regarding "DeepCopy" https://github.com/mohae/deepcopy/ https://github.com/barkimedes/go-deepcopy/ Has anyone tried them yet? 在2020年4月19日星期日 UTC+8 01:26:11 写道: > How about doing it manually? You can define a DeepCopy method on the type > and manually

Re: [go-nuts] how is xml.Decoder.CharsetReader supposed to be held?

2022-05-06 Thread Diego Joss
Does this work for you? https://go.dev/play/p/xLRawVhcRtF -- Diego -- 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