Open xsilas opened 6 months ago
Describe the bug Using the Marshal function on a interface{} converts an integer to a float value despite the gopkg yamlv3 (gopkg.in/yaml.v3) does not: Port somehow turns into a float:
To Reproduce
yamlv3Bytes, err := yamlv3.Marshal(someInterface) if err != nil { return err } fmt.Println(string(yamlv3Bytes))
yamlBytes, err := yaml.Marshal(someInterface) if err != nil { return err } fmt.Println(string(yamlBytes))
Expected behavior Port should remain an int like so:
Screenshots
Version Variables
Additional context If theres a mistake / missunderstanding on my side please let me know
Describe the bug Using the Marshal function on a interface{} converts an integer to a float value despite the gopkg yamlv3 (gopkg.in/yaml.v3) does not: Port somehow turns into a float:
To Reproduce
yamlv3Bytes, err := yamlv3.Marshal(someInterface) if err != nil { return err } fmt.Println(string(yamlv3Bytes))
yamlBytes, err := yaml.Marshal(someInterface) if err != nil { return err } fmt.Println(string(yamlBytes))
Expected behavior Port should remain an int like so:
Screenshots
Version Variables
Additional context If theres a mistake / missunderstanding on my side please let me know