refactor: rename Path function to Location for clarity in config file handling

This commit is contained in:
Eric-Guo
2025-07-28 15:14:47 +08:00
parent 613c6282f5
commit 0447d292ea
8 changed files with 10 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ func initConfig() {
// get configuration from local configuration file
func getConfigFromLocal() {
if configFile == "" {
configFile = configs.Path("serverNameExample.yml")
configFile = configs.Location("serverNameExample.yml")
}
err := config.Init(configFile)
if err != nil {