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
Reading 1.4 Release Notes I can'd find references to the following change of behaviour in 1.4:
1.4
package main import ( "fmt" "reflect" ) func main() { var Ttl float32 var Time int64 intZeroValue := reflect.Zero(reflect.ValueOf(Time).Type()) floatZeroValue := reflect.Zero(reflect.ValueOf(Ttl).Type()) fmt.Printf("%t\n%t\n", intZeroValue == reflect.ValueOf(Time), floatZeroValue == reflect.ValueOf(Ttl)) }
1.3 prints:
1.3
true true
When 1.4 prints:
false false
The text was updated successfully, but these errors were encountered:
Dup #9504 ?
Sorry, something went wrong.
Using .Interface() seems to do the trick.
.Interface()
No branches or pull requests
Reading
1.4
Release Notes I can'd find references to the following change of behaviour in1.4
:1.3
prints:When
1.4
prints:The text was updated successfully, but these errors were encountered: