We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func main() { uagent := "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true" parser, err := uaparser.New("./regexes.yaml") if err != nil { log.Fatal(err) } client := parser.Parse(uagent) fmt.Println(client.UserAgent.Family) // "Amazon Silk" fmt.Println(client.UserAgent.Major) // "1" fmt.Println(client.UserAgent.Minor) // "1" fmt.Println(client.UserAgent.Patch) // "0-80" fmt.Println(client.Os.Family) // "Android" fmt.Println(client.Os.Major) // "" fmt.Println(client.Os.Minor) // "" fmt.Println(client.Os.Patch) // "" fmt.Println(client.Os.PatchMinor) // "" fmt.Println(client.Device.Family) // "Kindle Fire" }
should not os family be mac?
The text was updated successfully, but these errors were encountered:
https://play.golang.org/p/NE3KkmiNyNG
Sorry, something went wrong.
I got it now. this is fire OS... not Mac OS
No branches or pull requests
should not os family be mac?
The text was updated successfully, but these errors were encountered: