avct / uasurfer

Go package for fast and reliable abstraction of browser user agent strings.
Other
337 stars 76 forks source link

Parsing string and returning uasurfer types #48

Open bzon opened 5 years ago

bzon commented 5 years ago

We currently have a problem with parsing types from database/sql.Row.Scan. We can deal with it by implemeting our own Scanner or it would be nice if this package can have like the following?

func ParseDeviceType(deviceType string) (dt uasurfer.ParseDeviceType, err error) {
  // Parsing work here
  return
}