Googlejson package

This package was just written to implement JSON according to the Google JSON style guide for a client via http.Response or a server using http.ResponseWriter.

Feedback appreciated.
https://godoc.org/github.com/jasonrichardsmith/googlejson

Style Guide
https://google-styleguide.googlecode.com/svn/trunk/jsoncstyleguide.xml

I know this is just nit-picking, but you can create and return a struct by pointer inline:

return &Struct{a: value}

In AddField(), you can add directly the slice:

fs = append(fs, keys...)

Yes, thank you, I am already making it variadic. Thank you for checking out it out though.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.