Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "net/http"
- )
- func mainHandler(w http.ResponseWriter, req *http.Request) {
- fmt.Fprintf(w, "Hey you are here")
- req.Body.Close()
- }
- func main() {
- http.HandleFunc("/", mainHandler)
- http.ListenAndServe(":8080", nil)
- }
Advertisement
Add Comment
Please, Sign In to add comment