How do I refer to a C struct field named 'type', given that 'type' is a
reserved word in Go? For example, in this struct:
> struct _GNetSnmpVarBind {
> guint32 *oid; /* name of the variable */
> gsize oid_len; /* length of the name */
> GNetSnmpVarBindType type; /* variable type / exception */
> ...
> };
For example, if the struct is referred to by data,
fmt.Println(data.type) gives:
"expected selector or type assertion, found 'type'"
--
Sonia Hamilton
http://www.snowfrog.net