lunixbochs / struc

Better binary packing for Go
MIT License
576 stars 45 forks source link

Private field of unserializable type causes error #84

Open mejedi opened 4 years ago

mejedi commented 4 years ago

According to the docs, private fields are ignored. However if the field's type is something the library can't handle, an error is reported:

type M struct {
  Int int
  private interface{}
}

The error doesn't make sense IMO since the field is going to be ignored anyway.

Using struc:"skip" as the workaround currently.