Skip to content

Commit

Permalink
remove fmt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sendilkumarn committed Jul 7, 2019
1 parent 78e520e commit f5837b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"fmt"
"syscall/js"
)

Expand Down Expand Up @@ -37,7 +36,6 @@ func main() {
print(x)
print(y)

println("asasdasdad")
return nil
})

Expand Down Expand Up @@ -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]
Expand Down
Binary file modified out/main.wasm
Binary file not shown.

0 comments on commit f5837b0

Please sign in to comment.