• fanzhangio's avatar
    Add conflict detection feature to apply strategy · 0299a240
    fanzhangio authored
    - Add DetectConflictor interface on Element level. Implemented it for particular elements.
    - If Options.FailOnConflict is enabled, Merge will detect conflict by invoking doConflictDecect for particular element,
      returning ConflictError with details.
    - Add tests, including use case examples and illustration. For example: list, map, and complicated combination.
    0299a240
replace_visitor.go 3.48 KB