mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-11-03 09:41:07 +08:00
refactor: rename Path function to Location for clarity in config file handling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user