We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
by borman@google.com:
Go version: import 8906cf341c9b (2012-01-07) The following code panics, it should return an error. package main import ( "fmt" "encoding/json" ) type errorMessage struct { Message string `json:"message"` Success bool `json:"success"` Error string `json:"data"` } var input = `{ "data": { "user": "name" }, "message": "Success", "success": true }` func main() { data := []byte(input) em := errorMessage{} fmt.Println(json.Unmarshal(data, &em)) }
The text was updated successfully, but these errors were encountered:
Comment 1:
This is a relatively recent regression.
Labels changed: added priority-soon, packagebug, removed priority-triage.
Status changed to Accepted.
Sorry, something went wrong.
Comment 2:
I used hg bisect to determine the regression occurred in 5083a8d8cc89
Comment 3:
Indeed, sorry for that. https://golang.org/cl/7100049/
Comment 4:
Status changed to Started.
Comment 5:
This issue was closed by revision 406ca3c.
Status changed to Fixed.
No branches or pull requests
by borman@google.com:
The text was updated successfully, but these errors were encountered: