Open leavest opened 4 months ago
我知道加个引号可以避免这个问题,但是希望load行为向yaml.Unmarshal看齐
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I know that adding quotes can avoid this problem, but I hope that the load behavior will be consistent with yaml.Unmarshal
Let me check how to fix it.
We designed it like this is because go-zero handles config files in the same way inspite of yaml, json, toml, properties etc.
Describe the bug A clear and concise description of what the bug is. load yaml config file can not recognize purely numeric strings without quotatio To Reproduce Steps to reproduce the behavior, if applicable:
Expected behavior A clear and concise description of what you expected to happen. can load config as yaml load Screenshots If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description Add any other context about the problem here.