123456789101112131415161718192021 |
- 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: %s", err.Error())
- }
- //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))
- }
|