RunCode.go 538 B

123456789101112131415161718192021
  1. package RunCode
  2. import (
  3. service "Yunlot/RunCode/service"
  4. "log"
  5. )
  6. func RunCode_Inte() {
  7. println("==========代码编译==========")
  8. //var port = "9999"
  9. err := service.InitDockerRunner("./RunCode/config/docker_config.json")
  10. if err != nil {
  11. log.Fatalf("initilize service failure: %s", err.Error())
  12. }
  13. //http.HandleFunc("/languages", ctl.LanguagesController)
  14. //http.HandleFunc("/run", ctl.RunController)
  15. //addr := net.JoinHostPort("", port)
  16. //log.Println("running to " + addr)
  17. //log.Fatalln(http.ListenAndServe(addr, nil))
  18. }