2021-08-15 23:16:07 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
"log"
|
|
|
|
"mailautoconf/web/handler"
|
2021-08-16 14:21:30 +02:00
|
|
|
"mailautoconf/global"
|
2021-08-15 23:16:07 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2021-08-16 14:21:30 +02:00
|
|
|
global.NewConfig()
|
2021-08-15 23:16:07 +02:00
|
|
|
http.HandleFunc("/", handler.WebHandler)
|
2021-08-16 14:21:30 +02:00
|
|
|
fmt.Println("Starting up Web Listener on port 8010")
|
|
|
|
log.Fatal(http.ListenAndServe(":8010", nil))
|
2021-08-15 23:16:07 +02:00
|
|
|
}
|