main.go 223 B

1234567891011121314
  1. package main
  2. import (
  3. "bswas/api/controller"
  4. "net/http"
  5. )
  6. func main() {
  7. http.HandleFunc("/", controller.Export)
  8. err := http.ListenAndServe("127.0.0.1:8090", nil)
  9. if err != nil {
  10. panic("端口号已被占用!")
  11. }
  12. }