mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
Release stable version 10.7 - HISTORY.md#sat-11-august-2018--v1070
I want to thank you once again for the unwavering support and trust you have shown me Former-commit-id: fa0be6bf5ca2f04e03e452f8cca75a0a7be0b487
This commit is contained in:
16
_examples/webassembly/basic/client/hello_go11beta3.go
Normal file
16
_examples/webassembly/basic/client/hello_go11beta3.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// +build go1.11beta3
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"syscall/js"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// GOARCH=wasm GOOS=js /home/$yourusername/go1.11beta1/bin/go build -o hello.wasm hello_go11beta2.go
|
||||
js.Global().Get("console").Call("log", "Hello WebAssemply!")
|
||||
message := fmt.Sprintf("Hello, the current time is: %s", time.Now().String())
|
||||
js.Global().Get("document").Call("getElementById", "hello").Set("innerText", message)
|
||||
}
|
||||
Reference in New Issue
Block a user