<commit_before># Compare
Comparison library for Golang.

[![GoDoc](https://godoc.org/github.com/pierrre/compare?status.svg)](https://godoc.org/github.com/pierrre/compare)
[![Build Status](https://travis-ci.org/pierrre/compare.svg?branch=master)](https://travis-ci.org/pierrre/compare)

## Features
- Similar to `reflect.DeepEqual()`
- Returns a detailed diff result
- Supports custom comparison functions:
	- `.Equal()` / `.Eq()` / `.Cmp()` / ...
	- Add you own functions !

## Examples
- [Compare](https://godoc.org/github.com/pierrre/compare#example-Compare)<commit_msg>README: update<commit_after># Compare

Comparison library for Golang.

[![Go Reference](https://pkg.go.dev/badge/github.com/pierrre/compare.svg)](https://pkg.go.dev/github.com/pierrre/compare)

## Features

- Similar to `reflect.DeepEqual()`
- Returns a detailed diff result
- Supports custom comparison functions:
  - `.Equal()` / `.Eq()` / `.Cmp()` / ...
  - Add you own functions !

## Usage

- [Compare](https://pkg.go.dev/github.com/pierrre/compare#example-Compare)
{'fraction_non_alphanumeric': 0.19001919385796545, 'fraction_numerical': 0.0, 'mean_word_length': 4.241206030150754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5336926', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 61}