some-automoderation/main.go

22 lines
370 B
Go

package main
import (
"flag"
"fmt"
"log"
"net/http"
"sunshine.industries/some-automoderation/routes"
)
func main() {
var port int
flag.IntVar(&port, "port", 8080, "Port on which the server should start")
flag.Parse()
fmt.Printf("Server will start on port %d", port)
routes.RegisterRoutes()
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
}