|
- package main
-
- import (
- "log"
- "net/http"
-
- _ "github.com/go-sql-driver/mysql"
- )
-
- func main() {
- readConfig()
- log.Println("Server started on: http://localhost:8080")
- http.HandleFunc("/", StartPay)
-
- //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)
- }
|