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.

Reply via email to