diff --git a/main.go b/main.go
index 2a16171..4c123b2 100644
--- a/main.go
+++ b/main.go
@@ -4 +3,0 @@ import (
- "fmt"
@@ -6 +4,0 @@ import (
- "gui/element"
@@ -16,10 +14 @@ func main() {
- document.Open("./src/app.html", func(doc *element.Node) {
- row := doc.QuerySelector(".row")
- buttons := row.QuerySelectorAll(".button")
- b := *buttons
- for i := range b {
- b[i].AddEventListener("click", func(e element.Event) {
- fmt.Println("Click")
- })
- }
- })
+ document.Open("./src/app.html")
package main
import (
"fmt"
"gui/document"
"gui/element"
// _ "net/http/pprof"
)
func main() {
// Server for pprof
// go func() {
// fmt.Println(http.ListenAndServe("localhost:6060", nil))
// }()
document.Open("./src/app.html", func(doc *element.Node) {
row := doc.QuerySelector(".row")
buttons := row.QuerySelectorAll(".button")
b := *buttons
for i := range b {
b[i].AddEventListener("click", func(e element.Event) {
fmt.Println("Click")
})
}
})
}