On Fri, Feb 28, 2025 at 12:19 PM Rory Campbell-Lange <r...@campbell-lange.net> wrote: > > On 27/02/25, Rory Campbell-Lange (r...@campbell-lange.net) wrote: > > On 27/02/25, Ian Lance Taylor (i...@golang.org) wrote: > > > On Thu, Feb 27, 2025 at 1:04 PM Rory Campbell-Lange > > > <r...@campbell-lange.net> wrote: > > ... > > > > It wasn't obvious to me that to "overwrite elements of the map" one > > > > could call > > > > Funcs with a funcMap of just those funcs that should be replaced > > > > https://go.dev/play/p/LWRmEL9XZce, rather than having to re-add all the > > > > funcs. > > > > > > > > Although this might be more obvious to experienced gophers, I suggest > > > > the > > > > following addition to the docs: > > ... > > > Another approach would be to add an example. Want to send a patch? > > Might this be appropriate as an example? > > https://github.com/rorycl/go/commit/15e069e9474a256988db88832177aaff22421eaa
Looks reasonable, thanks. Ian -- 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 visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUJnB8NcRzA-5WcEWa4S8oRQ2fH2B5UoGX-QbHZO_4%2BEQ%40mail.gmail.com.