mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
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:
@@ -1,9 +1,5 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("Hello world!")
|
println("Hello world!")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user