This commit is contained in:
Nicolas Lepage 2019-11-27 08:05:32 +01:00
parent c5b54a0511
commit d86e8a739e
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F

View File

@ -8,8 +8,8 @@ import (
wasmhttp "github.com/nlepage/go-wasm-http-server"
)
// Example_JSON demostrates a simple hello JSON service.
func Example_JSON() {
// Example_json demostrates a simple hello JSON service.
func Example_json() {
http.HandleFunc("/hello", func(res http.ResponseWriter, req *http.Request) {
params := make(map[string]string)
if err := json.NewDecoder(req.Body).Decode(&params); err != nil {