Skip to content

Instantly share code, notes, and snippets.

@SuperMohit
Last active November 17, 2018 19:01
Show Gist options
  • Save SuperMohit/b9227c5a3d90f32da23900ce954259b6 to your computer and use it in GitHub Desktop.
Save SuperMohit/b9227c5a3d90f32da23900ce954259b6 to your computer and use it in GitHub Desktop.
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)
}
@SuperMohit
Copy link
Author

Simple golang app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment