Skip to content

Instantly share code, notes, and snippets.

@itxsoumya
Last active January 30, 2021 07:38
Show Gist options
  • Save itxsoumya/5d64bcd01fa536e3833d882fc06f3fae to your computer and use it in GitHub Desktop.
Save itxsoumya/5d64bcd01fa536e3833d882fc06f3fae to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/hello", viewHandler)
err := http.ListenAndServe("localhost:8080", nil)
if err != nil{
fmt.Println(err)
}
}
@itxsoumya
Copy link
Author

goweb1

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