20 lines
375 B
Go
20 lines
375 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"gitea.sitodosi.com/betology/curso/pkg/handlers"
|
|
)
|
|
|
|
var portNumber = ":8080"
|
|
|
|
// main is the main application function
|
|
func main() {
|
|
http.HandleFunc("/", handlers.Home)
|
|
http.HandleFunc("/about", handlers.About)
|
|
|
|
fmt.Println(fmt.Sprintf("Starting application on port %s", portNumber))
|
|
_ = http.ListenAndServe(portNumber, nil)
|
|
}
|