SkillAgentSearch skills...

GoDevice

Device detection package in golang based on the user-agent

Install / Use

/learn @hjmodha/GoDevice
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

####Device Detection Library in Golang

#####Installing Package:

go get github.com/hiteshmodha/goDevice

#####How To use Package to detect Device:

  if deviceType == goDevice.MOBILE {
    fmt.Fprintf(w,"<h1>Mobile</h1>")
  } else if deviceType == goDevice.WEB {
    fmt.Fprintf(w,"<h1>Web</h1>")
  } else if deviceType == goDevice.TABLET {
    fmt.Fprintf(w,"<h1>Tablet</h1>")
  }

#####Example: example

For now goDevice is detecting Mobile,Desktop and Tablet.In future we will add support for SmartTV, Watch etc

View on GitHub
GitHub Stars30
CategoryDevelopment
Updated1y ago
Forks3

Languages

Go

Security Score

60/100

Audited on Feb 24, 2025

No findings