优化展示。
This commit is contained in:
parent
8334ba32ec
commit
0370314c3f
@ -10,7 +10,6 @@ import (
|
||||
"ferry/tools"
|
||||
config2 "ferry/tools/config"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
@ -100,10 +99,14 @@ func run() error {
|
||||
}
|
||||
}
|
||||
}()
|
||||
content, _ := ioutil.ReadFile("./static/ferry.txt")
|
||||
fmt.Println(string(content))
|
||||
fmt.Printf("%s Server Run http://127.0.0.1:%s/ \r\n", tools.GetCurrntTimeStr(), config2.ApplicationConfig.Port)
|
||||
fmt.Printf("%s Swagger URL http://127.0.0.1:%s/swagger/index.html \r\n", tools.GetCurrntTimeStr(), config2.ApplicationConfig.Port)
|
||||
fmt.Printf("%s Server Run http://%s:%s/ \r\n",
|
||||
tools.GetCurrntTimeStr(),
|
||||
config2.ApplicationConfig.Host,
|
||||
config2.ApplicationConfig.Port)
|
||||
fmt.Printf("%s Swagger URL http://%s:%s/swagger/index.html \r\n",
|
||||
tools.GetCurrntTimeStr(),
|
||||
config2.ApplicationConfig.Host,
|
||||
config2.ApplicationConfig.Port)
|
||||
fmt.Printf("%s Enter Control + C Shutdown Server \r\n", tools.GetCurrntTimeStr())
|
||||
// 等待中断信号以优雅地关闭服务器(设置 5 秒的超时时间)
|
||||
quit := make(chan os.Signal)
|
||||
|
Loading…
x
Reference in New Issue
Block a user