in case anyone get's here and is confused... you can wrap the additional functionality in the struct and use the interfaces from before
https://go.dev/play/p/e8aS0PZC6Zh On Monday, February 2, 2015 at 2:55:30 PM UTC+2 oju...@gmail.com wrote: > The code start to get smart when you combine interfaces. > > https://play.golang.org/p/axyl9FPS1e > > Whenever you can, forget the actual types. Code for interfaces instead. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/177b5a39-3512-4aed-8b9a-e21d1389671en%40googlegroups.com.