Re: [go-nuts] log package implementation question

2017-06-07 Thread hanisch
Thanks Ian! I see that at some point thereafter Logger's buf member must have been changed from a bytes.Buffer (using WriteString, WriteByte, etc.) to a []byte (using append) as well. Thanks again! On Wednesday, June 7, 2017 at 3:32:52 PM UTC-4, Ian Lance Taylor wrote: > > On Wed, Jun 7, 2017

Re: [go-nuts] log package implementation question

2017-06-07 Thread Ian Lance Taylor
On Wed, Jun 7, 2017 at 11:12 AM, wrote: > > I was perusing the code for the standard log package (src/log/log.go - The > Go Programming Language) and was wondering why the formatHeader method (line > 92) takes a pointer to byte slice since the only call to this method line > (163) calls it with t

[go-nuts] log package implementation question

2017-06-07 Thread hanisch
I was perusing the code for the standard log package (src/log/log.go - The Go Programming Language ) and was wondering why the formatHeader method (line 92) takes a pointer to byte slice since the only call to this method line (163) calls it wi