On Tue, 2021-01-19 at 22:44 +0000, Kevin Chadwick wrote:
> On January
19, 2021 9:13:55 PM UTC, Levieux Michel <
> mlevieu...@gmail.com> wrote:
> > I think the question was: "given your proposal here, I can write
> >
func
> > (string | []byte in1, string | []byte in2) which enforces that
in1
> > and
> > in2
> > must be either of type string or type []byte, but
how do I tell the
> > compiler that in1 and in2 must be of the *same
type* (whether it is
> > string
> > or []byte) ? "
> > 
> 
> You could
always use a well placed &. That isn't the point. 😉

What? How does that help?


-- 
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/ca069c336bf0dd981b1a7ee1306d5f47e39f40df.camel%40kortschak.io.

Reply via email to