Skip to content
/ uaparser Public

Fast and simple parser for user agents (Only supports popular technologies).

License

Notifications You must be signed in to change notification settings

atomx/uaparser

Repository files navigation

uaparser

GoDoc

Example usage

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)
}

About

Fast and simple parser for user agents (Only supports popular technologies).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages