Files
curso/main.go

18 lines
306 B
Go

package main
import (
"fmt"
"net/http"
)
var portNumber = ":8080"
// main is the main application function
func main() {
http.HandleFunc("/", Home)
http.HandleFunc("/about", About)
fmt.Println(fmt.Sprintf("Starting application on port %s", portNumber))
_ = http.ListenAndServe(portNumber, nil)
}