On Thu, 2022-12-01 at 00:33 -0800, 'Mark' via golang-nuts wrote: > Thanks. I've now tried that as follows: > > fmt.Printf("@@@@@@: %T %v\n", field, field) > kind = field.Type().Elem().Kind() > fmt.Printf("######: %T %v\n", field, field) > > In every case the output for kind before and after was identical. > (Naturally, I tried without the print statements too.) And, of course > the tests fail. So I'm _still_ using the awful hack! >
Doesn't this do what you want? https://go.dev/play/p/7jUw_iW8B_8 -- 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/65c1c5450a2bb0530d4ffad0571cc32b2397d12f.camel%40kortschak.io.