Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/go-cmp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: google/go-cmp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 8 files changed
  • 2 contributors

Commits on Oct 23, 2024

  1. Support compare functions with SortSlices and SortMaps (#367)

    The SortSlices and SortMaps options predate generics and
    accept an interface{}, so it is possible with reflection
    to support other function signatures than "func(T, T) bool".
    
    In particular, the Go ecosystem is increasingly moving towards
    "func(T, T) int" as the signature for ordering as evidenced
    by the newer slices.SortFunc function in stdlib.
    
    Thus, modernize cmpopts by supporting "func(T, T) int".
    
    Also, bump the minimum version to Go 1.21 to match
    the minimum supported version of google.golang.org/protobuf.
    
    Fixes #365
    dsnet authored Oct 23, 2024
    Copy the full SHA
    391980c View commit details

Commits on Dec 12, 2024

  1. Copy the full SHA
    4dd3d63 View commit details

Commits on Jan 14, 2025

  1. Detect proto.Message types when failing to export a field (#370)

    While we do not provide 1st class handling of protobuf messages,
    we can at least detect whether the type is a proto.Message
    and refer the user to the correct package to use to handle
    protobuf messages with cmp.Equal.
    dsnet authored Jan 14, 2025
    Copy the full SHA
    9b12f36 View commit details
Loading