2021-03-20 17:32:11 +07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2021-03-22 16:56:02 +07:00
|
|
|
<title>Golang-WASM Example</title>
|
2021-03-20 17:32:11 +07:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2021-03-22 16:56:02 +07:00
|
|
|
<h1>This is an example Golang-WASM Project.</h1>
|
2021-03-22 06:46:19 +07:00
|
|
|
<h3>
|
|
|
|
<a href="https://gitea.teamortix.com/Team-Ortix/go-mod-wasm/src/branch/master/example/basic/src/api/main.go">
|
|
|
|
Sample Go code
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<h2>Value from Go:</h2>
|
|
|
|
<h3 id="value"> </h3>
|
|
|
|
|
|
|
|
<h2>Call function from Go:</h2>
|
|
|
|
<input type="text" id="input" value="Team Ortix" />
|
|
|
|
<h3 id="funcValue"> </h3>
|
2021-03-20 17:32:11 +07:00
|
|
|
<script src="main.js"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|