Skip to content

replace golang.org/x/net/context to context #49

@binary111

Description

@binary111

vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/client.go:29:9: cannot use func literal (type func("service/vendor/golang.org/x/net/context".Context, string, interface {}, interface {}, *grpc.ClientConn, grpc.UnaryInvoker, ...grpc.CallOption) error) as type grpc.UnaryClientInterceptor in return argument

As of Go 1.7 this package(golang.org/x/net/context) is available in the standard library under the name context. https://golang.org/pkg/context. So we should replace all golang.org/x/net/context with context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions