Skip to content

Go Struct Compare - Initial Stable Release

Choose a tag to compare

@rschoonheim rschoonheim released this 07 Mar 07:22
· 3 commits to master since this release

This is the initial stable release of the Go Struct Compare package, providing a robust solution for detecting and applying changes between Go structs.

Features

  • Compare Structs: Detects additions, modifications, and deletions between struct instances
  • Apply Changes: Update structs with a list of changes
  • Filter Changes: Select changes by type (modified, added, deleted) or field names
  • Change Manipulation:
  • Convert changes to maps for efficient lookups
  • Merge multiple change lists
  • Create reverse changes for undo operations
  • Formatting & Serialization:
  • Human-readable change formatting
  • JSON serialization and deserialization