title: BadOffsetofSyntax layout: article

BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
that is not a selector expression.

Example:
 import "unsafe"

 var x int
 var _ = unsafe.Offsetof(x)