:art:加了些注释
This commit is contained in:
@@ -7,6 +7,12 @@ type website struct{}
|
||||
func WebSite() website {
|
||||
return website{}
|
||||
}
|
||||
|
||||
// GetHost
|
||||
// @description: 获取主机host
|
||||
// @receiver website
|
||||
// @param addr
|
||||
// @return string
|
||||
func (website) GetHost(addr string) string {
|
||||
uu, err := url.Parse(addr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user