Skip to content

Commit

Permalink
Added comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanzon committed Mar 17, 2014
1 parent 90faefd commit 8f94dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/xml"
)

// Parses the HTTPResponse as JSON to the given interface.
func (r *HTTPResponse) ParseFromJSON(v interface{}) error {
return json.Unmarshal(r.Data, v)
}
Expand Down

0 comments on commit 8f94dcb

Please sign in to comment.