On January 19, 2021 8:22:01 PM UTC, 'Dan Kortschak' via golang-nuts <golang-nuts@googlegroups.com> wrote: >On Tue, 2021-01-19 at 20:01 +0000, Kevin Chadwick wrote: >> I was inquiring about the possibility of no identifiers or >> abstraction but simply like Gos non generic functions (possibly >> reversed if needed). Using type OR type. >> >> func (String | []byte firstInput, myType | publicKey >> secondInput) { >> >> firstInput[0] >> firstInput[[]byte] >> } > > >How does this encode the desire that parameter types match?
These are the parameters. dynamic var firstInput must be a String or byte slice. -- 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/F183269A-E743-4069-90C3-0357F5C6D36D%40gmail.com.