Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL-related generators, once more #20

Closed
wants to merge 7 commits into from

Conversation

flyingmutant
Copy link
Owner

Rebased version of #18

wfscheper and others added 7 commits November 18, 2020 00:59
This adds a Generator for RFC 3986 compliant URLs, and two generators
for RFC 1035 compliant domain names.

Closes #17

Signed-off-by: Walter Scheper <[email protected]>
Signed-off-by: Walter Scheper <[email protected]>
Need to strip the leading and trailing newlines so we don't get empty
strings in our top-level domain list.
This removes the configurable domain generation in favor of one that
generates domains within the full rnage allowed by the specification.
To make the generated URL conform to how `url.Parse` works, Path
and Fragment are set to the unescaped form. RawPath and RawFragment
are left unset, and we simply rely on the URL struct to handle the
escaping as needed.
These generators return `net.IP`, and are also used in generating URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants