X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=5408f4878df9e6fc45f5e0e501abce77a5ebafa4;hb=c9eb08a02821033f198fcde1ea60279b19c5c617;hp=ab62153d077966ba55d0a2fad5f13760dd88fc8c;hpb=14f827331f7ae565d33cdf23c82f7794d3fc2d0d;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index ab62153..5408f48 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -86,12 +86,17 @@ type RmrEndpointList struct { } func (eplist *RmrEndpointList) String() string { + valuesText := eplist.StringList() + return strings.Join(valuesText, ",") +} + +func (eplist *RmrEndpointList) StringList() []string { tmpList := eplist.Endpoints valuesText := []string{} for i := range tmpList { valuesText = append(valuesText, tmpList[i].String()) } - return strings.Join(valuesText, ",") + return valuesText } func (eplist *RmrEndpointList) Size() int {