Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import of external capnp files without Go imports #135

Open
enugentdt opened this issue Apr 11, 2019 · 1 comment
Open

Import of external capnp files without Go imports #135

enugentdt opened this issue Apr 11, 2019 · 1 comment
Labels

Comments

@enugentdt
Copy link

Hello,

This may be a bit of a thinking out loud, but here's my general question. It's also possible that I just didn't read the documentation well enough, so please feel free to point me in the right direction if there is already an answer for this.

Say I have a capnp definition from someone else - some standard file that is all of the types, interfaces, etc., that would be used in a set of APIs. Would it make sense for this tool & library to be able to take a capnp file, have other files imported, and have those other files not need Go package & import definitions? I.e. pull types from other files and almost have them added "inline," or something of that style.

For context, I'm working on a set of microservices that all need to communicate on the same API. For me, it's a pain if I have to create different variants of the same data for every language I use.

However, I'm also relatively new to CapNProto, so it's 100% possible I'm misunderstanding the point.

Thanks in advance!

@zenhack
Copy link
Contributor

zenhack commented Apr 11, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants