univedo/api2go — pull request #17 by wwwdata (2014-09-01 23:30:36+00:00)
Title: Single struct relation

my work in progress that resolves issue #9

It now only checks for the related struct and if it contains a valid ID, embeds it in `links` and `linked`.

There could also be a scenario that only `AuthorID` is set and the `Author` struct is zeroed. Hm, maybe we should agree that we never want that? I don't really know, feel free to comment :P