9 lines
282 B
Plaintext
9 lines
282 B
Plaintext
// {{.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
|
|
}
|
|
|