Created
October 14, 2021 08:45
-
-
Save jfamousket/2777c8fb728c2536780ac45b8d8c7291 to your computer and use it in GitHub Desktop.
Revisions
-
jfamousket created this gist
Oct 14, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ ## serve JSON http response rw.Header().Set("Content-Type", "application/json") json.NewEncoder(rw).Encode(struct{ Status int `json:"status"` }{ Status: http.StatusOk })