You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the configuration item of my ini configuration file contains #, it will cause the configuration to be read incorrectly. For example, my MySQL password is "xxx#123", and the obtained parameter is "xxx".
Version
1.67.0
Describe the bug
If the configuration item of my ini configuration file contains #, it will cause the configuration to be read incorrectly. For example, my MySQL password is "xxx#123", and the obtained parameter is "xxx".
To reproduce
ini file
[database]
DbPassWord = "XXX#123"
config.go
file, err := ini.Load("config/app.ini")
DbPassWord = file.Section("database").Key("DbPassWord").MustString("")
fmt.Println("passwd:"DbPassWord)
This outputs passwd: "XXX
Expected behavior
Configuration items containing # can be read correctly.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: