Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse slice map to map got wired result #6

Closed
timestee opened this issue Mar 10, 2022 · 0 comments
Closed

parse slice map to map got wired result #6

timestee opened this issue Mar 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@timestee
Copy link
Contributor

timestee commented Mar 10, 2022

sm: 
  - foo : bar
  - bar : baz
type Conf struct {
   Result   map[string]string `xconf:"sm"`
}

got this result:

map[string]string{"bar" : "baz"} 

it should be:

 map[string]string{"foo": "bar", "bar": "baz"}
@timestee timestee added the bug Something isn't working label Mar 10, 2022
@timestee timestee self-assigned this Mar 10, 2022
@timestee timestee changed the title map错误配置为array,解析数据异常 parse slice map to map got wired result Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant