ソースを参照

Remove comparable limit for Listable

世界 1 年間 前
コミット
09421b6378
1 ファイル変更1 行追加1 行削除
  1. 1 1
      option/types.go

+ 1 - 1
option/types.go

@@ -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)