Remove comparable limit for Listable

This commit is contained in:
世界
2023-12-04 15:24:25 +08:00
parent 1637aebfb7
commit 67fd53b95c

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)