molproduktooo
molproduktooo
Well, you probably did a very bad thing: you made the Extend() function flip config which is getting extended, and the config which does extend. Now all the code where...
If you did this, you should have left original version as it was, and create a new additional extend. In previous version, it wasn't quite clear what extends what, but...
Additionally, to the above. I suspected this when read the description of new Extend, and now after carefully reviewing the code am certain about this. Look at this https://github.com/olebedev/config/blob/7eaf6b4b0aa2/config.go#L432 Basically,...
Sorry for being toxic. Would add tests, it's just all about time. I didn't added tests for the PR I submitted a year ago https://github.com/olebedev/config/pull/24 In the meantime, I use...
To solve the original issue, as @once168 rightly pointed out, this simple change should be made (if I am correct): function set(), current code with context: ``` for pos, part...
and len() instead of cap() must've been there, also. Normalize slice SIZE, capacity is managed by Go runtime. Currently this may either work, or panic, depending on it's M.O.