go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

Cap'n Proto library and code generator for Go

Results 87 go-capnp issues
Sort by recently updated
recently updated
newest added

Per @lthibault [comment](https://github.com/capnproto/go-capnproto2/pull/350#discussion_r1033022435), we should consider whether we can/should make our use of sync.Pool for MultiSegment harder to misuse; for an rpc workload messages are likely to be of similar,...

We're trying to use capnproto with our CI solution, which avoids go get's at runtime. Because of the lack of a .go file in the STD folder, the go.capnp file...

question

``` @0xbf613bdc8c0f6ae4; struct OldStruct @0xee1b66e79b51bbbf { # 0 bytes, 2 ptrs foo @0 :Data; # ptr[0] bar @1 :Data; # ptr[1] } struct NewStruct @0xb78a3d22d4285878 { # 8 bytes, 2...

Requires #555, #556 Elided tests and creating as draft to get a first pass review. The diff is large(ish) so it may be easier to read the full code vs...

I spent some time figuring out how to compile capnpn files in a relatively portable way; this seems to be the best way.

Due to #538, tooling such as Jetbrains GoLand, go-mod-update, etc. currently show `v3.0.0-alpha-29` as latest version because it is lexicographical higher than `v3.0.0-alpha.30`. Unfortunately it's not possible to [retract](https://go.dev/ref/mod#go-mod-file-retract) the...

Hi everyone, Installing the project via `go install` results in the following error: ```bash go install capnproto.org/go/capnp/v3/capnpc-go@latest go: downloading zenhack.net/go/util v0.0.0-20230414204917-531d38494cf5 .go/pkg/mod/capnproto.org/go/capnp/[email protected]/answer.go:10:2: unrecognized import path "zenhack.net/go/util": https fetch: Get "https://zenhack.net/go/util?go-get=1":...

This fixes the Message's Reset() call to allow reuse of the first segment. Prior to this fix, the first segment was discarded after the first Reset call, effectively causing a...

This wasn't immediately clear to me and led me somewhat astray: capnproto messages are not safe for both decoding and writing. To be clear: this is not a limitation of...

Is there ever a reason you'd want to marshal a message without setting its root? It took me a while to discover why I couldn't Unmarshal the resulting bytes.