go.capnp 1015 B

1234567891011121314151617181920212223242526272829303132
  1. # Generate go.capnp.out with:
  2. # capnp compile -o- go.capnp > go.capnp.out
  3. # Must run inside this directory to preserve paths.
  4. @0xd12a1c51fedd6c88;
  5. annotation package(file) :Text;
  6. # The Go package name for the generated file.
  7. annotation import(file) :Text;
  8. # The Go import path that the generated file is accessible from.
  9. # Used to generate import statements and check if two types are in the
  10. # same package.
  11. annotation doc(struct, field, enum) :Text;
  12. # Adds a doc comment to the generated code.
  13. annotation tag(enumerant) :Text;
  14. # Changes the string representation of the enum in the generated code.
  15. annotation notag(enumerant) :Void;
  16. # Removes the string representation of the enum in the generated code.
  17. annotation customtype(field) :Text;
  18. # OBSOLETE, not used by code generator.
  19. annotation name(struct, field, union, enum, enumerant, interface, method, param, annotation, const, group) :Text;
  20. # Used to rename the element in the generated code.
  21. $package("capnp");
  22. $import("zombiezen.com/go/capnproto2");