Feat: 实现知识图谱数据库的检索方法,并对外提供接口
This commit is contained in:
@@ -40,7 +40,10 @@ type Config struct {
|
||||
}
|
||||
|
||||
func Load() (*Config, error) {
|
||||
if err := godotenv.Load("../config/.env"); err != nil {
|
||||
var err error
|
||||
err = godotenv.Load("../config/.env")
|
||||
err = godotenv.Load("./config/.env")
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error loading .env file: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user