-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We clean up the code a bit, using slightly more efficient switch statements and using reflect.Values more idiomatically (they're conventionally passed by value not by pointer). Technically, changing the type of the fields in FieldConfig is an API-breaking change, but there don't seem to be any backend implementations outside of confita itself and even the ones inside confita aren't broken by the change. Also use the correct bit size when parsing numbers because it's easy to do. Also add some tests for error cases, which gets us to 96% coverage from 90%. Also use the correct module name in the `go.mod` file.
- Loading branch information
Showing
4 changed files
with
588 additions
and
104 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
Oops, something went wrong.