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
What operating system and processor architecture are you using (go env)?
GOOS="darwin"
GOARCH="amd64"
What did you do?
https://play.golang.org/p/Ejp3XuTl8n
Tried to read the body of an ICMPv4 echo reply. On line 34, I'm trying to confirm that the ICMP Echo Reply received has the same data as the ICMP Echo created on line 16.
I wasn't asking a question, and thought it was an actual error. Your reply made me realize that the problem was in my code, and not in x/net/icmp. Thank you, and sorry for misusing Go's issue reporting.
What version of Go are you using (
go version
)?go version go1.7.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOOS="darwin"
GOARCH="amd64"
What did you do?
https://play.golang.org/p/Ejp3XuTl8n
Tried to read the body of an ICMPv4 echo reply. On line 34, I'm trying to confirm that the ICMP Echo Reply received has the same data as the ICMP Echo created on line 16.
What did you expect to see?
Per https://godoc.org/golang.org/x/net/icmp#Echo, I expected access to
rm.Body
struct fields.What did you see instead?
hosaka:Workspace wes$ go run test.go # command-line-arguments ./test.go:34: rm.Body.Data undefined (type icmp.MessageBody has no field or method Data)
When line 34 is commented:
The text was updated successfully, but these errors were encountered: