ruleBuilder 构建后 传入进方法的map 添加的key value 添加不进去
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 281
- PR merge metrics
- No merged PRs in 30d
Description
我吧gloabalMap 作为参数传进方法,在里面新加一个key value ,期待最外层的gloabalMap也会加这样一个key value但是当我用了你们框架的dc := dataContext.NewDataContext()
ruleBuilder := builder.NewRuleBuilder(dc)
发现key value没加进去
当我把rulebuilder注释
key value就添加进去了
这是debug模式下的 不知道是我goland原因还是什么?我直接取值能取出来的
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported map mutation with the code shown in the screenshots, starting at dataContext.NewDataContext() and builder.NewRuleBuilder(dc). Compare the direct call with the RuleBuilder path and identify the relevant map-handling entry point; done means a focused regression test demonstrates that the expected key/value is visible in the outer globalMap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100