Playground
counting-up
dom
hello-world
html
try-to-alert-with-logs
Source Code
body.html
<h1>Hello, world!</h1>
go.sum
github.com/crhntr/dom v0.1.0-dev.6 h1:iUkl5c1i3QRRyYjdozGDuNnYdEQzZp1sFk9QTmFrO4c= github.com/crhntr/dom v0.1.0-dev.6/go.mod h1:V2RcN/d7pdUo5romb+mk/K4nm4QwAmwuJ259vdJGE/M= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
go.mod
module playground go 1.23.2 require github.com/crhntr/dom v0.1.0-dev.6
main.go
package main import ( _ "embed" "github.com/crhntr/dom/browser" ) //go:embed body.html var bodyHTML string func main() { document := browser.OpenDocument() body := document.Body() body.SetInnerHTML(bodyHTML) }
Run
Format
Tidy Module
Download
Your app is being built.