payment gateway for rpn cn
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
433B

  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. )
  6. func main() {
  7. readConfig()
  8. log.Println("Server started on: http://localhost:8080")
  9. //http.HandleFunc("/", StartPay)
  10. http.HandleFunc("/", Index)
  11. http.HandleFunc("/show", Show)
  12. http.HandleFunc("/new", New)
  13. http.HandleFunc("/edit", Edit)
  14. http.HandleFunc("/insert", Insert)
  15. http.HandleFunc("/update", Update)
  16. http.HandleFunc("/delete", Delete)
  17. http.ListenAndServe(":8080", nil)
  18. }