Re: [go-nuts] Reading http.Request.Body...

2016-10-11 Thread Andy Balholm
I think what you need is io.ReadFull. Andy -- 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. For more options, visit

Re: [go-nuts] TimeZone Query: Time Difference between EST and UTC

2016-09-29 Thread Andy Balholm
Right now there is a 4-hour difference between Eastern (Daylight) Time and UTC. But you asked for “EST”, and that is what you got: Eastern *Standard* Time. If you want a Location that automatically switches between EST and EDT, ask for “America/New_York”. Andy -- You received this message

Re: [go-nuts] Adding YAML to the stdlib

2016-09-23 Thread Andy Balholm
What do you mean by “community”? Is it those of us who aren’t employed by Google? Is it any more unfair for the Go team at Google to expect Gustavo (or others) to maintain his YAML package than for some in the community to expect the Go team to take it over? Andy -- You received this

Re: [go-nuts] Win xp

2016-08-30 Thread Andy Balholm
https://golang.org/doc/install says that Windows XP is supported. Maybe your Windows 10 machine is 64-bit and your Windows XP machine is 32-bit. Try setting the GOARCH environment variable to 386 before you compile to generate 32-bit EXE files. Andy -- You

Re: [go-nuts] Initialize Variables in case clause of a switch

2016-08-05 Thread Andy Balholm
I’ve wished for it too, but I just use an else/if chain in that case. Andy -- 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

Re: [go-nuts] Error vs. Panic: Should functions like strings.Repeat return an error value?

2016-07-06 Thread Andy Balholm
Yes, panic would probably have been a better choice there. In the API cleanups leading up to Go 1, the team removed some of the error returns from the NewWriter functions in the compress/* packages (https://codereview.appspot.com/5639057), but maybe it would have been good to go farther. Andy

Re: [go-nuts] feature request: allow literal digit underscore grouping

2016-06-22 Thread Andy Balholm
The same is true of brace styles :-P. But my point is that by not allowing digit grouping, Go avoids style debates on that issue. The grouping could have been standardized with gofmt, but as it is, it is standardized by the compiler to a format that is universally understood (no grouping).

Re: [go-nuts] feature request: allow literal digit underscore grouping

2016-06-22 Thread Andy Balholm
Actually, the mention of gofmt brings up the issue of consistent formatting. If underscores in numbers were allowed, gofmt should automatically insert them for all numbers over a given length, and remove them for shorter numbers. Otherwise it would just be another opportunity for inconsistency,

<    1   2