github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/x/misc/slice/slice_to_any_slice.go (about)

     1  package slice
     2  
     3  func ToAnySlice[K any](vs ...K) []interface{} {
     4  	interfaces := make([]any, 0, len(vs))
     5  	for _, v := range vs {
     6  		interfaces = append(interfaces, v)
     7  	}
     8  	return interfaces
     9  }