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
if you use is.Nil(err) you might get:
is.Nil(err)
some_code.go:43: expected nil: &json.UnmarshalTypeError{Value:"string", Type:(*reflect.rtype)(0xbadc0de), Offset:1234}
where you could get: some_code.go:43: json: cannot unmarshal string into Go value of type int
some_code.go:43: json: cannot unmarshal string into Go value of type int
I like the similicity of using fmt.Sprintf("%#v") but might there be a nicer way?
fmt.Sprintf("%#v")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
if you use
is.Nil(err)
you might get:some_code.go:43: expected nil: &json.UnmarshalTypeError{Value:"string", Type:(*reflect.rtype)(0xbadc0de), Offset:1234}
where you could get:
some_code.go:43: json: cannot unmarshal string into Go value of type int
I like the similicity of using
fmt.Sprintf("%#v")
but might there be a nicer way?The text was updated successfully, but these errors were encountered: