12345678910111213141516171819202122 |
- package RunCode
- import (
- service "Yunlot/RunCode/service"
- "log"
- )
- func RunCode_Inte() {
- println("==========代码编译==========")
- //var port = "9999"
- err := service.InitDockerRunner("./RunCode/config/docker_config.json")
- if err != nil {
- log.Fatalf("initilize service failure docker_config.json: %s", err)
- }
- //http.HandleFunc("/languages", ctl.LanguagesController)
- //http.HandleFunc("/run", ctl.RunController)
- //addr := net.JoinHostPort("", port)
- //log.Println("running to " + addr)
- //log.Fatalln(http.ListenAndServe(addr, nil))
- }
|