This commit is contained in:
yanweidong 2025-02-20 17:41:08 +08:00
parent a128eb8461
commit 0218dfd02e
1 changed files with 0 additions and 4 deletions

View File

@ -41,10 +41,6 @@ func New(srvKey string, cfg any) {
log.Fatalln("ERROR: Service Not Nil", cfp)
}
if !strings.Contains(string(yamlFile), "Port:") {
log.Fatalln("ERROR: Port Not Nil", cfp)
}
// 解析YAML
err = yaml.Unmarshal(yamlFile, cfg)
if err != nil {