Skip to content

Commit

Permalink
docs: add getdevice to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Jan 18, 2025
1 parent 4c808c7 commit fd6789d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func main() {

// Access parsed information using agent fields.
fmt.Println(agent.GetBrowser()) // Chrome
fmt.Println(agent.GetOS()) // Windows
fmt.Println(agent.GetVersion()) // 118.0.0.0
fmt.Println(agent.GetOS()) // Windows
fmt.Println(agent.GetDevice()) // Desktop
fmt.Println(agent.IsDesktop()) // true
fmt.Println(agent.IsMobile()) // false
fmt.Println(agent.IsTablet()) // false
Expand Down

0 comments on commit fd6789d

Please sign in to comment.