|
- package main
-
- import (
- "log"
- "net/http"
- )
-
- func main() {
- readConfig()
- http.HandleFunc("/", StartPay)
- http.HandleFunc("/rpnNameAndCard", rpnNameAndCard)
- // 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)
- http.ListenAndServe(":8080", nil)
- log.Println("Server started on: http://localhost:8080")
- }
|