You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
212 B

7 years ago
  1. package main
  2. import (
  3. "fmt"
  4. "log"
  5. "net/http"
  6. )
  7. func main() {
  8. readConfig("config.json")
  9. fmt.Printf("%+v\n", config)
  10. router := NewRouter()
  11. log.Fatal(http.ListenAndServe(":"+config.ServerPort, router))
  12. }