Last active
January 30, 2021 07:38
-
-
Save itxsoumya/5d64bcd01fa536e3833d882fc06f3fae to your computer and use it in GitHub Desktop.
This file contains hidden or 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" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/hello", viewHandler) | |
err := http.ListenAndServe("localhost:8080", nil) | |
if err != nil{ | |
fmt.Println(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goweb1