On Fri, 2021-09-24 at 01:03 -0700, Brian Candler wrote: > On Friday, 24 September 2021 at 08:25:31 UTC+1 Brian Candler wrote: > > The documentation says it prefers exact match over case- > > insensitive, but example 3 contradicts that. It seems to be last- > > match that wins. > > > > > > I realise now what they mean now: if there are multiple struct tags > defined which differ only in case, then the one which matches the > incoming field exactly is preferred. > https://play.golang.org/p/Do1dPxLOaCj >
This still seems to conflict with the JSON-RPC spec: https://jsonrpc.org/historical/json-rpc-1-1-alt.html#service-procedure-and-parameter-names And it doesn't even appear to use the exact match in preference depending on the order of the JSON keys https://play.golang.org/p/SQyE3R-GGNn -- 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/8ccb6d00e1534d15a72ca41af86f9e8cf1fe7ef0.camel%40kortschak.io.