ini
ini copied to clipboard
支持 append 时控制 reload 行为
Describe the feature
当我在初始化项目时,希望在使用 Append 方法时跳过已经加载过的数据源,但实际上不是这样的,所以我不得不把数据源包装成 io.ReadCloser 接口,这个时候我又不得不考虑并发的情况,于是我又不得不引入 sync.Mutex 或其它相关的包。
Describe the solution you'd like
希望将在 Append 的时候将 Reload 行为交给开发者决定。
Describe alternatives you've considered
新增一个开发者可以控制 Reload 行为的类 Append 方法;或者 Append 方法可以接收内置接口 dataSource 的实现。
Additional context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct