Skip to content

gnoigo Execute InstallOperation Cannot infer T #31

@Ninjashrubry

Description

@Ninjashrubry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions