payment gateway for rpn cn
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

27 lignes
684B

  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. )
  6. func main() {
  7. //readConfig()
  8. readConfigForTest()
  9. http.HandleFunc("/choosePayment", choosePayment)
  10. http.HandleFunc("/rpnNameAndCard", rpnNameAndCard)
  11. http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn
  12. // http.HandleFunc("/", Index)
  13. // http.HandleFunc("/show", Show)
  14. // http.HandleFunc("/new", New)
  15. // http.HandleFunc("/edit", Edit)
  16. // http.HandleFunc("/insert", Insert)
  17. // http.HandleFunc("/update", Update)
  18. // http.HandleFunc("/delete", Delete)
  19. fs := wrapHandler(http.FileServer(http.Dir("./PG")))
  20. http.HandleFunc("/", fs)
  21. http.ListenAndServe(":8080", nil)
  22. log.Println("Server started on: http://localhost:8080")
  23. }