diffkit

Convenience functions to help you find differences. Fully tested and no external dependencies.
Installation
In your Golang project, please run:
go get github.com/bartmika/diffkit
Documentation
All documentation can be found here.
Example Usage
package main
import (
"fmt"
"github.com/bartmika/diffkit"
func main(){
// Sample data.
oldArr := []uint64{1, 2, 3, 4, 5}
newArr := []uint64{1, 2, 6, 7, 8, 9, 10}
// See what differences between the two arrays.
addedArr, sameArr, removedArr := Uints64(oldArr, newArr)
// Correct results shown in comments.
fmt.Println(addedArr) // 6, 7, 8, 9, 10
fmt.Println(sameArr) // 1, 2
fmt.Println(removedArr) // 3, 4, 5
}
)
Contributing
Found a bug? Want a feature to improve your developer experience when finding the difference? Please create an issue.
License
Made with ❤️ by Bartlomiej Mika.
The project is licensed under the ISC License.