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.
Этот коммит содержится в:
родитель
80ee343e6d
коммит
4bd1b9e53d
1 изменённых файлов: 1 добавлений и 5 удалений
|
@ -1,9 +1,5 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello world!")
|
||||
println("Hello world!")
|
||||
}
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче