Main
1
package main
2
3
import (
4
    "net/http"
5
    "log"
6
)
7
8
func main() {
9
    // this calls loadConfig in util.go.
10
    // I might put util.go in another package in the near future
11
    LoadConfig()
12
13
    // this calls service.go's route to handle the routing.
14
    Route()
15
16
    // Start the server on port 8888
17
    err := http.ListenAndServe(":8888", nil)
18
    if err != nil {
19
        log.Fatal("ListenAndServe: ", err)
20
    }
21
}