jinzhu / configor

Golang Configuration tool that support YAML, JSON, TOML, Shell Environment
MIT License
1.74k stars 204 forks source link

found character that cannot start any token #55

Open lyouthzzz opened 4 years ago

lyouthzzz commented 4 years ago

image

image

Catch "yaml: line 6: found character that cannot start any token" error when configor.Load() with yaml file . The error is on the "%" character.

lukasaron commented 4 years ago

It's the YAML issue, you can have the functional version when you put quotes around your pattern: default:"'%Y-%m-%d.log'".