From 1b320d488a34e3ebab783a591258b42d9b71f89a Mon Sep 17 00:00:00 2001 From: "guozhi.li" Date: Thu, 18 Jan 2024 10:34:26 +0800 Subject: [PATCH] support more type to umnarshaJSON --- pkg/set/stringset.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/set/stringset.go b/pkg/set/stringset.go index fd638657a..2566a3df7 100644 --- a/pkg/set/stringset.go +++ b/pkg/set/stringset.go @@ -149,9 +149,6 @@ func (set StringSet) MarshalJSON() ([]byte, error) { } // UnmarshalJSON - parses JSON data and creates new set with it. -// If 'data' contains JSON string array, the set contains each string. -// If 'data' contains JSON string, the set contains the string as one element. -// If 'data' contains Other JSON types, JSON parse error is returned. func (set *StringSet) UnmarshalJSON(data []byte) error { sl := []interface{}{} var err error