From 8a03d1af7678d6994e8c71c37dc02a2ba38154ad Mon Sep 17 00:00:00 2001 From: Etai Lev Ran Date: Mon, 28 Jul 2025 13:05:12 +0300 Subject: [PATCH] Change String() to accept a value reciever. Since Plugin returns a TypedName by value the String method with pointer receiver was not called. Go happily calls the value reciver based methods for pointers as well. Signed-off-by: Etai Lev Ran --- pkg/epp/plugins/typedname.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/epp/plugins/typedname.go b/pkg/epp/plugins/typedname.go index 174d97e19..27cbf9bc2 100644 --- a/pkg/epp/plugins/typedname.go +++ b/pkg/epp/plugins/typedname.go @@ -29,6 +29,6 @@ type TypedName struct { } // String returns the type and name rendered as "/". -func (tn *TypedName) String() string { +func (tn TypedName) String() string { return tn.Name + separator + tn.Type }