Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
之前有和你讨论过在recordfile的时候,对于下标有意义,而又不能确认下标的情况,使用MAP方式可以解决,而目前的版本的配置表读取并不支持MAP类型,所以添加了一下MAP支持
比如 {"aaa":1,"bbb":2},在aaa和bbb无法确定的情况下,不方便设计出struct来读取,这个时候可以使用map[string]int,而下标可以从其他数据源获取,做一些判断,比如从数据库拿出来,if v,ok:=map[k]
此PR解决这样的需求。