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
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