Last active
November 17, 2018 19:01
-
-
Save SuperMohit/b9227c5a3d90f32da23900ce954259b6 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { | |
http.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Golang App version 1") | |
log.Println("Hello Mars!") | |
})) | |
log.Println("Now server is running on port 3000") | |
http.ListenAndServe(":3000", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple golang app