It's already trivial 3 lines o code. Readable, light, and simple. And it's a question tbh, if topic starter even needs that code, or just a bad implementation.
среда, 31 октября 2018 г., 18:47:37 UTC+3 пользователь Jake Montgomery написал: > > It is highly likely that when go2 comes out, with generics, it will be > trivial to write a ToInterfaceSlice() function that takes a slice of any > type T and returns a []interface{}. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.