wasm: use println instead of fmt

The generated wasm is 575 bytes when compiled with -no-debug (and
works), which is a much better first experience for new users than
the 20KB+ added (atm) just from including fmt.
This commit is contained in:
Justin Clift
2019-04-30 15:25:50 +10:00
committed by Ron Evans
parent 80ee343e6d
commit 4bd1b9e53d
+1 -5
View File
@@ -1,9 +1,5 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello world!")
println("Hello world!")
}