2023-01-26 20:58:13 +00:00
|
|
|
package main
|
|
|
|
|
2023-01-26 22:13:44 +00:00
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2023-01-28 21:22:13 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Timezone = UTC
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-01-26 20:58:13 +00:00
|
|
|
func main() {
|
2023-01-28 20:43:07 +00:00
|
|
|
addr := readHttpYML()
|
|
|
|
|
2023-01-28 21:22:13 +00:00
|
|
|
logger("----------------START----------------")
|
|
|
|
logger("timezone = UTC")
|
|
|
|
logger("connection open with address " + addr)
|
2023-01-26 22:13:44 +00:00
|
|
|
|
|
|
|
handler()
|
|
|
|
|
|
|
|
err := http.ListenAndServe(addr, nil)
|
2023-01-28 20:43:07 +00:00
|
|
|
errorPanic(err)
|
2023-01-28 21:22:13 +00:00
|
|
|
|
|
|
|
defer logger("----------------END----------------")
|
2023-01-26 20:58:13 +00:00
|
|
|
}
|