I've been doing
exactly that (Life in Go, with simple animation in the browser), so I went ahead and posted my code at GitHub. Get life4.go and life.html at
https://github.com/theclapp/go-life, "go run life4.go", and browse to localhost:6080/life.html. This is my first ever GitHub repo, so I hope I didn't do anything terribly stupid. :)
I've only ever run it on Chrome on a Mac, so YMMV as far as actually getting it to work, but the code at least might be illuminating. (Hmm, actually I take that back, it ran fine on my Linux box (Debian) as well (using Chrome from my Mac).)
This (such as it is) is also the most sophisticated web programming I've ever done, so, again, I hope I didn't do anything terribly stupid. It looks like you're a newbie too in that respect;
w3schools.com has been very helpful to me, though I've picked up various bits of html and Javascript in passing over the past 15 years.
-- Larry