DiffMap is a read-only snapshot of parsed diffs, keyed by file path. Safe for concurrent reads after construction via NewDiffMap.
| 11 | // DiffMap is a read-only snapshot of parsed diffs, keyed by file path. |
| 12 | // Safe for concurrent reads after construction via NewDiffMap. |
| 13 | type DiffMap struct { |
| 14 | m map[string]string |
| 15 | } |
| 16 | |
| 17 | // NewDiffMap creates a frozen, read-only DiffMap from a plain map. |
| 18 | func NewDiffMap(m map[string]string) DiffMap { |
nothing calls this directly
no outgoing calls
no test coverage detected