yes, i'm not 100% certain this is all 100% to be honest but there is no errors and the relay seems to be behaving exactly as it was before, as it should be

so this is great, anyway, it means i can write code that handles this part of it, which i probably already wrote, and just move it into separate functions, and this becomes the simplified API and the legacy API just uses that code as part of its process

the same will happen to the event request as well

Reply to this note

Please Login to reply.

Discussion

just to clarify

when you "embed" a struct in another struct in golang, pointer or directly, the methods associated with the type also become accessible from the type that has the new embedding

additionally, code that accessed those same fields that now are part of the embedded struct, have no change in syntax unless there is a conflict with another field name (which basically can't happen)

so the process of popping out a subset of a struct into a new struct is absurdly simple and smooth in #golang

no other language makes this as easy