hyqe / rdg

Random Data Generator
MIT License
0 stars 0 forks source link

Implement random url #16

Open jakobii opened 3 years ago

jakobii commented 3 years ago

we should be careful not to use real domains. example.com is safe to use.

rfc2606 - reserved domain names

it may be more useful to provide a means of specifying the domain(s) to use in the random generators. this would make sense when generating mock data. so maybe some kind of constructor function that allows the caller to specify some URL parameter would be nice here.

func URL() url.URL
func DomainName() string 
func URLQuery() string 
func URLSchema() string
func URLPath() string
func URLFragment() string