Closed davidhubbard closed 1 year ago
Fixes https://github.com/capnproto/go-capnp/issues/490 by only generating one RegisterSchema() function per $Go.package().
RegisterSchema()
$Go.package()
For example, the unit tests persistent-simple.capnp and persistent-samepkg.capnp now both have the annotation:
$Go.package("persistent_simple");
Their generated go code thus starts with:
package persistent_simple
but only one of them will include a RegisterSchema().
Fixes https://github.com/capnproto/go-capnp/issues/490 by only generating one
RegisterSchema()
function per$Go.package()
.For example, the unit tests persistent-simple.capnp and persistent-samepkg.capnp now both have the annotation:
$Go.package("persistent_simple");
Their generated go code thus starts with:
package persistent_simple
but only one of them will include a
RegisterSchema()
.