mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-11 09:39:10 +00:00
💡
This commit is contained in:
parent
d86e8a739e
commit
c493fd54e4
@ -8,7 +8,7 @@ import (
|
|||||||
wasmhttp "github.com/nlepage/go-wasm-http-server"
|
wasmhttp "github.com/nlepage/go-wasm-http-server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Example_json demostrates a simple hello JSON service.
|
// Demostrates a simple hello JSON service.
|
||||||
func Example_json() {
|
func Example_json() {
|
||||||
http.HandleFunc("/hello", func(res http.ResponseWriter, req *http.Request) {
|
http.HandleFunc("/hello", func(res http.ResponseWriter, req *http.Request) {
|
||||||
params := make(map[string]string)
|
params := make(map[string]string)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user