()
| 367 | } |
| 368 | |
| 369 | func (o *Options) nestedMap() map[string]any { |
| 370 | nm := make(map[string]any) |
| 371 | |
| 372 | for k, v := range o.m { |
| 373 | nestedMapSet(nm, k, v) |
| 374 | } |
| 375 | |
| 376 | return nm |
| 377 | } |
| 378 | |
| 379 | // nestedMapSet sets a value in a nested map[string]any structure. |
| 380 | // If the key has more than one element, it creates nested maps as needed. |
no test coverage detected