package main
import (
"fmt"
"github.com/atomx/uaparser"
)
func main() {
id, version := uaparser.Browser("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0")
major, minor := uaparser.Unversion(version)
fmt.Printf("%s %d.%d", uaparser.Browsers[id], major, minor)
}
-
Notifications
You must be signed in to change notification settings - Fork 1
Fast and simple parser for user agents (Only supports popular technologies).
License
atomx/uaparser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Fast and simple parser for user agents (Only supports popular technologies).
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published