mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-05 18:57:30 +03:00
Remove comparable limit for Listable
This commit is contained in:
@@ -83,7 +83,7 @@ func (v NetworkList) Build() []string {
|
|||||||
return strings.Split(string(v), "\n")
|
return strings.Split(string(v), "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
type Listable[T comparable] []T
|
type Listable[T any] []T
|
||||||
|
|
||||||
func (l Listable[T]) MarshalJSON() ([]byte, error) {
|
func (l Listable[T]) MarshalJSON() ([]byte, error) {
|
||||||
arrayList := []T(l)
|
arrayList := []T(l)
|
||||||
|
|||||||
Reference in New Issue
Block a user