Skip to content

Support for embedded struct pointers? #156

@pnelson

Description

@pnelson

Out of habit, my embedded structs have always been pointers. Something like:

type WithEmbeddedStructPtr struct {
    Id int64
    *Names
}

Would it be possible to support them? I see readStructColumns explicitly checks if the anonymous field is a struct, and not the possibility of a reflect.Ptr to a struct. I tried to add it quickly myself but then it broke in get and I had no idea what was going on in there.

I'm not sure if this is possible or if it is worth adding. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions