RunCode.go 550 B

12345678910111213141516171819202122
  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 docker_config.json: %s", err)
  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. }