httpserver.go 225 B

1234567891011121314
  1. package main
  2. import (
  3. "net/http"
  4. )
  5. func httpNetWorkServer() {
  6. http.HandleFunc("/", commonHandler)
  7. if err := http.ListenAndServe(Gconfig.HttpServer.HttpBindAddr, nil); err != nil {
  8. log.Error(err.Error())
  9. return
  10. }
  11. }