mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
fix an idiot typo
Former-commit-id: 3b493bedb38641c84e19c3b53d6bd0b273cc9d81
This commit is contained in:
parent
cc19f80049
commit
47075a82e9
|
@ -122,7 +122,7 @@
|
||||||
* [Transactions](http_responsewriter/transactions/main.go)
|
* [Transactions](http_responsewriter/transactions/main.go)
|
||||||
* [SSE](http_responsewriter/sse/main.go)
|
* [SSE](http_responsewriter/sse/main.go)
|
||||||
* [SSE (third-party package usage for server sent events)](http_responsewriter/sse-third-party/main.go)
|
* [SSE (third-party package usage for server sent events)](http_responsewriter/sse-third-party/main.go)
|
||||||
* [Webassemply](webassemply/basic/main.go)
|
* [Webassembly](webassembly/basic/main.go)
|
||||||
* Cache
|
* Cache
|
||||||
* [Simple](cache/simple/main.go)
|
* [Simple](cache/simple/main.go)
|
||||||
* [Client-Side (304)](cache/client-side/main.go)
|
* [Client-Side (304)](cache/client-side/main.go)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Hello WebAssemply + Iris (Go)</title>
|
<title>Hello Webassembly + Iris (Go)</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="hello"></div>
|
<div id="hello"></div>
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// GOARCH=wasm GOOS=js /home/$yourusername/go1.14/bin/go build -o hello.wasm hello_go114.go
|
// GOARCH=wasm GOOS=js /home/$yourusername/go1.14/bin/go build -o hello.wasm hello_go114.go
|
||||||
js.Global().Get("console").Call("log", "Hello WebAssemply!")
|
js.Global().Get("console").Call("log", "Hello Webassembly!")
|
||||||
message := fmt.Sprintf("Hello, the current time is: %s", time.Now().String())
|
message := fmt.Sprintf("Hello, the current time is: %s", time.Now().String())
|
||||||
js.Global().Get("document").Call("getElementById", "hello").Set("innerText", message)
|
js.Global().Get("document").Call("getElementById", "hello").Set("innerText", message)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user