From a35995207ec1cf8813b67359e645923aa8704004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 6 Aug 2023 04:45:23 +0200 Subject: [PATCH] Fix Go source code indentation (#22) --- .../index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/posts/2020-10-03-go-webassembly-http-requests-and-promises/index.md b/content/posts/2020-10-03-go-webassembly-http-requests-and-promises/index.md index 1811b70..8d0d229 100644 --- a/content/posts/2020-10-03-go-webassembly-http-requests-and-promises/index.md +++ b/content/posts/2020-10-03-go-webassembly-http-requests-and-promises/index.md @@ -509,8 +509,8 @@ func MyGoFunc() js.Func { readableStream := readableStreamConstructor.New(underlyingSource) // Create the init argument for the Response constructor - // This allows us to pass a custom status code (and optionally headers and more) - // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/Response + // This allows us to pass a custom status code (and optionally headers and more) + // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/Response responseInitObj := map[string]interface{}{ "status": http.StatusOK, "statusText": http.StatusText(http.StatusOK), @@ -528,8 +528,8 @@ func MyGoFunc() js.Func { return nil }) - // Create and return the Promise object - // The Promise will resolve with a Response object + // Create and return the Promise object + // The Promise will resolve with a Response object promiseConstructor := js.Global().Get("Promise") return promiseConstructor.New(handler) })