Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnoigo Execute InstallOperation Cannot infer T #31

Open
Ninjashrubry opened this issue Jun 5, 2024 · 0 comments
Open

gnoigo Execute InstallOperation Cannot infer T #31

Ninjashrubry opened this issue Jun 5, 2024 · 0 comments

Comments

@Ninjashrubry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant