An interesting example of making a copy of URL in go https://github.com/go-kit/kit/blob/master/examples/addsvc/pkg/addtransport/http.go#L123
func copyURL(base *url.URL, path string) *url.URL {
next := *base
next.Path = path
return &next
}
An interesting example of making a copy of URL in go https://github.com/go-kit/kit/blob/master/examples/addsvc/pkg/addtransport/http.go#L123
func copyURL(base *url.URL, path string) *url.URL {
next := *base
next.Path = path
return &next
}