im just learning Go, and creating simple web app. But every time i start my localhost in GO(even i stopped process in terminal), it doesnt close port. So how can i close it.
here's code
const portNumber = ":8080"
func main() {
http.HandleFunc("/", Home)
http.HandleFunc("/about", About)
fmt.Println(fmt.Sprintf("Starting on port %s", portNumber))
_ = http.ListenAndServe(portNumber, nil)
}
I did research on net, but couldnt find solution, so hope you can help me. Thanks