openconfig / gnoigo

Go library implementing a gNOI client
Apache License 2.0
4 stars 5 forks source link

gnoigo Execute InstallOperation Cannot infer T #31

Open Ninjashrubry opened 5 months ago

Ninjashrubry commented 5 months ago

Copying from the sample code gnoiClient := gnoigo.NewClients(conn) installOP := gnoiOS.NewInstallOperation().Reader(strings.NewReader("test")).Version("1.1.1.1") _, err = gnoigo.Execute(ctx, gnoiClient, installOP)

I get the errors "Cannot infer T" on Execute and for installOP: Cannot use installOP (type *InstallOperation) as the type Operation[T] Type does not implement Operation[T] need the method: Execute(context. Context, *internal. Clients) (T, error) have the method: Execute(ctx context. Context, c *internal. Clients) (*ospb. InstallResponse, error)

go version go 1.22.1

go mod github.com/openconfig/gnoigo v0.0.0-20240320202954-ebd033e3542c