Hi,

https://go2goplay.golang.org/p/fTW3hJYNgfU

type Stringer interface {
   String() string
}

Print[T Stringer](s []T) 

Print(s []Stringer)

Both forms works.
How to prevent double way to do the same things that can be confusing ?

-- 
wilk

-- 
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/rs0077%24vd9%241%40ciao.gmane.io.

Reply via email to