diff --git a/go/main.go b/go/main.go index a7cd980..bab6887 100644 --- a/go/main.go +++ b/go/main.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "syscall/js" ) @@ -37,7 +36,6 @@ func main() { print(x) print(y) - println("asasdasdad") return nil }) @@ -83,7 +81,7 @@ func main() { node := doc.Call("createElement", "div") node.Call("setAttribute", "class", "color") node.Call("setAttribute", "id", x) - node.Call("setAttribute", "style", fmt.Sprintf("background-color: %s", x)) + node.Call("setAttribute", "style", "background-color: "+x) setColor := js.FuncOf(func(this js.Value, args []js.Value) interface{} { e := args[0] diff --git a/out/main.wasm b/out/main.wasm index 3cea0ea..ac970ce 100755 Binary files a/out/main.wasm and b/out/main.wasm differ