diff --git a/pkg/hook/hook.go b/pkg/hook/hook.go index 95b7654e..e36ae40d 100644 --- a/pkg/hook/hook.go +++ b/pkg/hook/hook.go @@ -14,8 +14,8 @@ type Hook struct { mu sync.RWMutex } -var _ symbol.LoadHook = &Hook{} -var _ symbol.UnloadHook = &Hook{} +var _ symbol.LoadHook = (*Hook)(nil) +var _ symbol.UnloadHook = (*Hook)(nil) // New creates a new Hook instance. func New() *Hook { diff --git a/pkg/node/onetomany.go b/pkg/node/onetomany.go index e8c5e55a..2f2512bf 100644 --- a/pkg/node/onetomany.go +++ b/pkg/node/onetomany.go @@ -27,7 +27,7 @@ type ( } ) -var _ Node = &OneToManyNode{} +var _ Node = (*OneToManyNode)(nil) // NewOneToManyNode returns a new OneToManyNode. func NewOneToManyNode(config OneToManyNodeConfig) *OneToManyNode { diff --git a/pkg/node/onetoone.go b/pkg/node/onetoone.go index 8e4493f6..8ff38c96 100644 --- a/pkg/node/onetoone.go +++ b/pkg/node/onetoone.go @@ -28,7 +28,7 @@ type ( } ) -var _ Node = &OneToOneNode{} +var _ Node = (*OneToOneNode)(nil) // NewOneToOneNode returns a new OneToOneNode. func NewOneToOneNode(config OneToOneNodeConfig) *OneToOneNode { diff --git a/pkg/plugin/networkx/http.go b/pkg/plugin/networkx/http.go index 78d6dd62..2f760741 100644 --- a/pkg/plugin/networkx/http.go +++ b/pkg/plugin/networkx/http.go @@ -199,7 +199,7 @@ var ( ) var _ node.Node = (*HTTPNode)(nil) -var _ http.Handler = &HTTPNode{} +var _ http.Handler = (*HTTPNode)(nil) var _ scheme.Spec = (*HTTPSpec)(nil) var forbiddenResponseHeaderRegexps []*regexp.Regexp diff --git a/pkg/scheme/scheme.go b/pkg/scheme/scheme.go index 7aeb79f1..c2fa8e58 100644 --- a/pkg/scheme/scheme.go +++ b/pkg/scheme/scheme.go @@ -16,7 +16,7 @@ type Scheme struct { mu sync.RWMutex } -var _ Codec = &Scheme{} +var _ Codec = (*Scheme)(nil) // New creates a new Scheme instance. func New() *Scheme { diff --git a/pkg/scheme/unstructured.go b/pkg/scheme/unstructured.go index a8cdce30..a488befc 100644 --- a/pkg/scheme/unstructured.go +++ b/pkg/scheme/unstructured.go @@ -22,7 +22,7 @@ const ( KeyLinks = "links" ) -var _ Spec = &Unstructured{} +var _ Spec = (*Unstructured)(nil) // NewUnstructured returns a new Unstructured instance with an optional primitive.Map. func NewUnstructured(doc *primitive.Map) *Unstructured {