please file it as a bug for jsonhandler - sean
On Fri, Aug 18, 2023, 21:17 jal...@gmail.com <jalo...@gmail.com> wrote: > Hi all, > > In slog, I am experimenting with the the ReplaceAttr func in the > HandlerOptions with json handler. My understanding is that if i want to > remove an attribute then return an empty slog.Attr. However, logtest test > fails with a json unmarshal error. Note I am literally using the code > example from the official docs. > > Is this expected or a bug? Not sure what my user error is here. > > https://go.dev/play/p/i7VtMtNK4eV > > Thanks, > Joe > > -- > 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/89810de6-6a02-440f-988b-9503845a8c90n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/89810de6-6a02-440f-988b-9503845a8c90n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAGabyPpww3p8%2BpU%3DWM4QTOYmOE2eqd-VCh4Rpnvq9aHyfnKxVw%40mail.gmail.com.