package main import ( "database/sql" "net/http" "strconv" ) // ============================================================================ func main() { defer dbShutdown() var b sql.NullString nsVal(b) fs := http.FileServer(http.Dir("../app")) http.Handle("/app/", http.StripPrefix("/app", fs)) http.HandleFunc("/", handler) config := GetConfig() http.ListenAndServe(":" + strconv.Itoa(config.port), nil) }