package main import ( "github.com/gorilla/mux" "github.com/gorilla/schema" //"html/template" "net/http" ) var decoder = schema.NewDecoder() //var templ = template.Must(template.ParseFiles("templates/header.html", "templates/navbar.html", "templates/footer.html")) func main() { InitDB() r := mux.NewRouter() r.HandleFunc("/", IndexHandler) r.HandleFunc("/register", RegisterHandler).Methods("POST") r.HandleFunc("/register", PrintRegisterHandler).Methods("GET") r.HandleFunc("/new", AddNewJobHandler).Methods("POST") r.HandleFunc("/new", PrintNewJobHandler).Methods("GET") http.Handle("/", r) http.ListenAndServe(":8080", nil) }