19 lines
297 B
Go
19 lines
297 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
const portNumber = ":8080"
|
|
|
|
// main is the main application function
|
|
func main() {
|
|
http.HandleFunc("/", Home)
|
|
http.HandleFunc("/about", About)
|
|
|
|
fmt.Printf("Starting application on port %s\n", portNumber)
|
|
|
|
_ = http.ListenAndServe(portNumber, nil)
|
|
}
|