From 4bd1b9e53d7e3978c0e242143380efa2d3ac1e16 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Tue, 30 Apr 2019 15:25:50 +1000 Subject: [PATCH] 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. --- src/examples/wasm/main/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/examples/wasm/main/main.go b/src/examples/wasm/main/main.go index 033d8b07..29457d7c 100644 --- a/src/examples/wasm/main/main.go +++ b/src/examples/wasm/main/main.go @@ -1,9 +1,5 @@ package main -import ( - "fmt" -) - func main() { - fmt.Println("Hello world!") + println("Hello world!") }