z5labs/gogm

Special edge struct tags

nikitawootten opened this issue · 0 comments

Feature Request:

Replace the IEdge interface with struct tags.

Context

The current implementation of special edges relies on the user creating a struct that implements the IEdge interface. This requires the user to write some reflect on their own and is generally pretty annoying to do if you have a lot of special edges.

Special struct tags could instead mark the start and end links in a special edge.

Alternatives

Yes, the current IEdge interface.

Would you be interested in implementing this feature?

@erictg is implementing this feature currently