Skip to content

Instantly share code, notes, and snippets.

@Sampriti-Mitra
Created October 17, 2021 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sampriti-Mitra/8b91e711912504f99a1e1a3d84992f9e to your computer and use it in GitHub Desktop.
Save Sampriti-Mitra/8b91e711912504f99a1e1a3d84992f9e to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", start)
err := http.ListenAndServe(":10000", nil)
log.Fatal(err)
}
func start(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Welcome to myapp!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment