-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base: improve Comparer documentation and usability
This change documents the fields of `Comparer` and adds code to fill in `Equal` and `FormatKey` fields with reasonable defaults (replacing the `equals` wrapper; note that the wrapper used `bytes.Equal` as the default whereas we now fall back to `Compare` instead). Note that `FormatKey` is used unconditionally in various error messages. I am investigating separately adding a default for `Split` as well.
- Loading branch information
1 parent
bde41ee
commit 306ea71
Showing
4 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters