Thanks to visit codestin.com Credit goes to github.com
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
demo
package main import ( "fmt" "reflect" ) type student struct { name string } func main() { a := []student{student{"A"}, student{"B"}, student{"C"}} v := reflect.ValueOf(a) i := v.Index(0).Interface() a[0] = student{"X"} fmt.Println(a, i) }
go run main.go
[{X} {B} {C}] {A}
gopherjs run main.go
[{X} {B} {C}] {X}
The text was updated successfully, but these errors were encountered:
compiler/natives/src/reflect: fix valueIntrface check struct copy (#1157
5214468
) * compiler/natives/src/reflect: fix valueIntrface check struct copy Fixed #1156
Successfully merging a pull request may close this issue.
demo
go run main.go
gopherjs run main.go
The text was updated successfully, but these errors were encountered: