-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Implement slices generic parsers (#109)
* refactor: Implement int/float slice generic parsers * refactor: Implement complex slice generic parser * refactor: Implement uint slice generic parser * style: Fix linter warnings * style: Fix linter warnings * refactor: Reduce cognitive complexity * refactor: Use generic slices parsers * refactor: Use generic uint slice parcer * refactor: Use golang.org/x/exp/constraints * refactor: Simplify code * refactor: Simplify code
- Loading branch information
1 parent
31d704f
commit 505b070
Showing
11 changed files
with
272 additions
and
481 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package internal | ||
|
||
import "errors" | ||
|
||
var ( | ||
// ErrNotSet is an error that is returned when the environment variable is not set. | ||
ErrNotSet = errors.New("not set") | ||
// ErrInvalidValue is an error that is returned when the environment variable is not valid. | ||
ErrInvalidValue = errors.New("invalid value") | ||
) |
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.