I wanted to ask if using reflect.ValueOf concurrently with some other code
that makes changes in the memory the pointer references, is thread safe ?
For example:
type Test struct {
name string
}
var x = &Test{name: "test"}
go func() {
reflect.ValueOf(&x).MethodByName("SomeMethod").Call([]reflect.Value{})
}()
go func() {
x.name = "change"
}()
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.