package main import ( "log" "net/http" ) func main() { //readConfig() readConfigForTest() http.HandleFunc("/choosePayment", choosePayment) http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn // http.HandleFunc("/", Index) // http.HandleFunc("/show", Show) // http.HandleFunc("/new", New) // http.HandleFunc("/edit", Edit) // http.HandleFunc("/insert", Insert) // http.HandleFunc("/update", Update) // http.HandleFunc("/delete", Delete) fs := wrapHandler(http.FileServer(http.Dir("./PG"))) http.HandleFunc("/", fs) http.ListenAndServe(":8080", nil) log.Println("Server started on: http://localhost:8080") }