This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netaddr: add functionality to IPRange for feature parity (#202)
Add MustParseIPRange, IPRange.{IsZero,AppendTo,MarshalText,UnmarshalText} to bring it to feature parity with the other common types. Similar to the MarshalText methods of the other types, it never returns an error for invalid values. This behavior should probably change, but should be consistently done for all other types (see #169). Fixes #201 Signed-off-by: Joe Tsai <[email protected]>
- Loading branch information
Showing
2 changed files
with
122 additions
and
11 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