Documentation ¶ Index ¶ func GetUrlHost(urlStr string) string func GetUrlTopDomain(urlStr string) string func IsOwnSiteUrl(requestUrl string, siteUrl string) bool func UrlAddQueryParam(urlStr string, key string, val string) string func UrlIsHttps(urlStr string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetUrlHost ¶ func GetUrlHost(urlStr string) string 获取url的主机 func GetUrlTopDomain ¶ func GetUrlTopDomain(urlStr string) string 获取url的顶级域名 func IsOwnSiteUrl ¶ func IsOwnSiteUrl(requestUrl string, siteUrl string) bool 判断url是否属于指定站点 func UrlAddQueryParam ¶ func UrlAddQueryParam(urlStr string, key string, val string) string 给url增加query参数 func UrlIsHttps ¶ func UrlIsHttps(urlStr string) bool 是否为https Types ¶ This section is empty. Source Files ¶ View all Source files url_util.go Click to show internal directories. Click to hide internal directories.