I think that playground is broken.
*./prog.go:22:9: undefined: translatableImpl./prog.go:27:11: undefined: translatableImplGo build failed.* I fixed it like this: https://go.dev/play/p/vZlwZIe9Ras On Monday, April 4, 2022 at 1:27:46 PM UTC-4 Ron Green wrote: > 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/2d1ab342-5f84-401a-8bf8-60de23f0b93cn%40googlegroups.com.