mileusna / useragent

Go/Golang parser for user agent strings
MIT License
404 stars 65 forks source link

Architecture #27

Open kadirgun opened 1 year ago

kadirgun commented 1 year ago

Can we parse the OS Architecture data?

mileusna commented 1 year ago

Give me some kind of example User Agent string and which data would you like to get from it?

kadirgun commented 1 year ago
ua := useragent.Parse("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36")

fmt.Println(ua.Arch) //or ua.OSArch => x64
mileusna commented 1 year ago

Yes, it makes sense. I will take a look.