You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is expected. Your Init method takes its receiver by value, not by pointer. So any modifications it makes to its receiver are lost when the function returns.
What version of Go are you using (
go version
)?go version go1.9beta2 linux/amd64
I've also tried 1.8.3
What operating system and processor architecture are you using (
go env
)?What did you do?
a.go
main.go
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: