Created
July 23, 2014 16:02
-
-
Save jmoiron/6330b79888974ad94380 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func LoadGzippedJSON(r io.Reader, v interface{}) error { | |
raw, err := gzip.NewReader(r) | |
if err != nil { | |
return err | |
} | |
return json.NewDecoder(raw).Decode(&v) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment