urlutil

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL