#87·go-spew

gopher.js

Author: pjebsCreated Jul 2, 2018Updated Feb 2, 2025

I noticed that spew doesn't seem to work for gopher.js js objects:

eg.

(*main.TzTray)(<nil>)({
 tz: (float64) 0,
 showSeconds: (bool) true,
 tray: (*js.Object)(<nil>)(<already shown>),
 ticker: (*time.Ticker)(<nil>),
 eventEmitter: (*js.Object)(<nil>)(<already shown>)
})

I can see that eventEmitter is being showed as <nil> when I know it is not.