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
I configured a value in json format, but it cannot be parsed correctly
To reproduce
my.ini
[server]
timeout = {
"timeout":1000
}
main.go
package main
import (
"fmt"
"os"
"gopkg.in/ini.v1"
)
func main() {
cfg, err := ini.Load("my.ini")
if err != nil {
fmt.Printf("Fail to read file: %v", err)
os.Exit(1)
}
s := cfg.Section("server")
m := s.KeysHash()
fmt.Println(m)
}
Expected behavior
value is uncompressed json and can be processed correctly
Additional context
Of course, the json after value compression can be processed correctly, but my situation is quite special, the value is input by the user, and I have no control
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version
v1.67.0
Describe the bug
I configured a value in json format, but it cannot be parsed correctly
To reproduce
my.ini
main.go
Expected behavior
value is uncompressed json and can be processed correctly
Additional context
Of course, the json after value compression can be processed correctly, but my situation is quite special, the value is input by the user, and I have no control
Code of Conduct
The text was updated successfully, but these errors were encountered: