Remove comparable limit for Listable

This commit is contained in:
世界 2023-12-04 15:24:25 +08:00
parent 21283b554a
commit 09421b6378
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (v NetworkList) Build() []string {
return strings.Split(string(v), "\n")
}
type Listable[T comparable] []T
type Listable[T any] []T
func (l Listable[T]) MarshalJSON() ([]byte, error) {
arrayList := []T(l)