Created
November 23, 2019 07:53
-
-
Save BNPrashanth/a1c5986c1ef46e552d0394ff2019db3f to your computer and use it in GitHub Desktop.
This file contains 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 characters
/* | |
HandleMain Function renders the index page when the application index route is called | |
*/ | |
func HandleMain(w http.ResponseWriter, r *http.Request) { | |
w.Header().Set("Content-Type", "text/html; charset=utf-8") | |
w.WriteHeader(http.StatusOK) | |
w.Write([]byte(pages.IndexPage)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment