useragent icon indicating copy to clipboard operation
useragent copied to clipboard

OS release name based on OS version

Open majimboo opened this issue 8 years ago • 0 comments

This is actually a feature request. Maybe we can also get the OS release name like Windows 6.1.0 can have Windows 7.

Maybe?

type UserAgent struct {
    // The original user agent string.
    Original string
    Type     Type
    // The browser/crawler/etc. name. For example:
    //  Firefox, IceCat, Iceweasel
    //  Dillo
    //  Chrome
    //  MSIE
    //  Googlebot
    //   etc.
    // If the name is not known, Name will be `unknown'.
    Name    string
    Version semver.Version
    // The OS name. Can be one of:
    //  GNU/Linux
    //  FreeBSD
    //  OpenBSD
    //  NetBSD
    //  Windows
    //  Mac OS X
    //  Android
    //  Firefox OS
    //  CrOS
    //   etc.
    // If the os is not known, OS will be `unknown'.
    OS        string
    OSVersion semver.Version
    // THIS ONE HERE!!! :D
    OSReleaseName string 
    Security  Security
    // URL with more information about the user agent (in most cases it's the home page).
    // If unknown is nil.
    URL *url.URL
    // Is it a phone device?
    Mobile bool
    // Is it a tablet device?
    Tablet bool
}

majimboo avatar Feb 25 '17 13:02 majimboo