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
Related to golang/go#599 embedded structs act as if their fields were inlined in their parent, this means that alignment issues with fields propagate to embeddings. Therefore embeddings with atomic alignment at the top of the struct, also must be embedded at the top of their parent struct.
Should help with #6 and #16, see the latter for an example of how this can be roughly used for range-requests once a file is cached.
This includes some light breaking changes, mainly in that we changed the return value of the New* functions to return a concrete type instead of an interface. The concrete type still implements the original interface, so this should only break usages which were passing the package-level New functions themselves.