No Description

main.go 266B

123456789101112131415161718
  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. "strconv"
  6. "./src/config"
  7. )
  8. func main() {
  9. http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
  10. config.Routes.Match(w, r)
  11. })
  12. log.Fatal(http.ListenAndServe(":"+strconv.Itoa(config.SERVER_PORT), nil))
  13. }