I\'m curious why Go does\'t implicitly convert []T to []interface{} when it will implicitly convert T to interface{}. Is
[]T
[]interface{}
T
interface{}
Try interface{} instead. To cast back as slice, try
func foo(bar interface{}) { s := bar.([]string) // ... }