Re: [go-nuts] Go 1.8 port to FreeBSD/PowerPC64

2019-06-02 Thread Ian Lance Taylor
On Fri, May 31, 2019 at 6:54 PM Curtis Hamilton wrote: > > I’m porting Go 1.8 to FreeBSD/PowerPC64. I’ve successfully built > go-FreeBSD-ppc64-bootstrap using go on FreeBSD/amd64. > > However, l’m getting the error go: cannot find GOROOT directory, when > executing ‘go env’ on the target system

[go-nuts] Re: golang splitting string by space but considering quoted section as a single part

2019-06-02 Thread Michael Fromberger
You might find http://godoc.org/bitbucket.org/creachadair/shell useful also. –M On Saturday, June 1, 2019 at 8:14:14 PM UTC-7, AJ ONeal wrote: > > Based on the work of others here I created my own version that passes the > tests I needed to pass: > > * strips outer quotes > * keeps inner quotes

[go-nuts] Re: golang splitting string by space but considering quoted section as a single part

2019-06-02 Thread Lucio
On Sunday, 2 June 2019 05:14:14 UTC+2, AJ ONeal wrote: > > Based on the work of others here I created my own version that passes the > tests I needed to pass: > > * strips outer quotes > * keeps inner quotes > * empty quotes produce empty string > My immediate (knee-jerk?) reaction was "where ca

[go-nuts] ANN: Zstandard Go compression package

2019-06-02 Thread Klaus Post
I am happy to announce the availability of the first Zstandard compressor written in Go. This package will allow you to get very fast compression to the Zstandard format. The current compressor is focused mainly on speed and outperforms gzip/deflate typically by a factor of 3x for similar com

Re: [go-nuts] Re: Marshaling to JSON and dynamically choosing fields

2019-06-02 Thread David Riley
There are other JSON packages (jsoniter, gojay come to mind) which may do more of what you want. The standard library's JSON package is fine for simple things, but because it relies on struct tagging, it's not terribly well suited for situations where you want to separate the serialized represe