Skip to content

Commit

Permalink
support more type to umnarshaJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhi.li committed Jan 18, 2024
1 parent dd6281f commit 1b320d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/set/stringset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b320d4

Please sign in to comment.