[go-nuts] Re: runtime.GOOS case

2017-08-07 Thread Eric Brown
Appreciate the reply, guys. Also, Chris, it's not usually a problem... I just prefer to keep the compiled file size and resources minimal; therefore, don't like to import packages unless absolutely necessary. On Monday, August 7, 2017 at 4:12:03 PM UTC-5, James Bardin wrote: > > They will

[go-nuts] Re: runtime.GOOS case

2017-08-07 Thread Dave Cheney
the GOOS values are case sensitive and currently all specified to be lower case; GOOS=linux != GOOS=Linux. You don't need to ToLower a runtime.GOOS as a. that would mean your Go installation was built with the wrong value b. by working around this it would hide the problem until it was harder to

[go-nuts] Re: runtime.GOOS case

2017-08-07 Thread James Bardin
They will always be lowercase, as the values are all defined in the code const GOOS = `android` const GOOS = `darwin` const GOOS = `dragonfly` const GOOS = `freebsd` const GOOS = `linux` const GOOS = `nacl` const GOOS = `netbsd` const GOOS = `openbsd` const GOOS = `plan9` const GOOS = `solaris`