Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package yamlUtil
import (
"io/ioutil"
"log"
)
// LoadFromFile 加载配置文件(这里不反序列化)
func LoadFromFile(filePath string) ([]byte, error) {
// 读取 YAML 文件
yamlFile, err := ioutil.ReadFile(filePath)
if err != nil {
log.Fatalf("Error reading config.yaml file: %v", err)
return nil, err
}
return yamlFile, nil
}