cloudflared-mirror/vendor/zombiezen.com/go/capnproto2/capnpc-go/templates/promise

9 lines
282 B
Plaintext
Raw Normal View History

// {{.Node.Name}}_Promise is a wrapper for a {{.Node.Name}} promised by a client call.
type {{.Node.Name}}_Promise struct { *{{.G.Capnp}}.Pipeline }
func (p {{.Node.Name}}_Promise) Struct() ({{.Node.Name}}, error) {
s, err := p.Pipeline.Struct()
return {{.Node.Name}}{s}, err
}