...

Source file src/github.com/ory/go-convenience/urlx/copy.go

Documentation: github.com/ory/go-convenience/urlx

     1  package urlx
     2  
     3  import "net/url"
     4  
     5  // Copy creates returns a copy of the provided url.URL pointer.
     6  func Copy(u *url.URL) *url.URL {
     7  	a := new(url.URL)
     8  	*a = *u
     9  	return a
    10  }
    11  

View as plain text