useragent:用于用户代理字符串的GoGolang解析器

时间:2021-05-03 07:25:45
【文件属性】:
文件名称:useragent:用于用户代理字符串的GoGolang解析器
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-03 07:25:45
go golang user-agent user-agent-parser useragent Go / Golang包,用于解析用户代理字符串 包ua.Parse(userAgent string)函数解析浏览器和bot的用户代理字符串和确定项: 用户代理名称和版本(Chrome,Firefox,Googlebot等) 操作系统名称和版本(Windows,Android,iOS等) 设备类型(移动设备,台式机,平板电脑,机器人) 设备名称(如果有)(iPhone,iPad,华为VNS-L21) 漫游器提供的网址( 等) 地位 在检测Andorid设备名称方面仍需要做一些工作。 安装 go get github.com/mileusna/useragent 例子 package main import ( "fmt" "strings" "github.com/mileusna/useragent" ) func main () { us
【文件预览】:
useragent-master
----.gitignore(44B)
----go.mod(46B)
----ua.go(9KB)
----is.go(2KB)
----LICENSE.md(1KB)
----ua_test.go(13KB)
----README.md(3KB)

网友评论