You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: utils.go
    path of file: ./repos/scan4all/vendor/github.com/Qianlitp/crawlergo/pkg/tools/requests
    
    the code of the file until where you have to start completion: package requests

import (
	"github.com/pkg/errors"
	"net/url"
	"strings"
)

// UrlParse 调用url.Parse，增加了对%的处理
func UrlParse(sourceUrl string) (*url.URL, er
    
func UrlParse(sourceUrl string) (*url.URL, error) {
	u, err := url.Parse(sourceUrl)
	if err != nil {
		u, err = url.Parse(escapePercentSign(sourceUrl))
	}
	if err != nil {
		return nil, errors.Wrap(err, "parse url error")
	}
	return u, nil
}