Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlatformType ¶
type PlatformType byte
PlatformType is the kind of platform of the device.
const ( // Desktop operating system Desktop PlatformType = 1 << iota // Mobile operating system (android, ios, WP, ...) Mobile // Android operating system Android // IOs operating system (iPhone, iPad, iPod, ...) IOs // WindowsPhone operating system WindowsPhone )
func Platform ¶
func Platform(userAgent string) PlatformType
Platform returns the platform of the device with the given User-Agent.
func (PlatformType) String ¶
func (i PlatformType) String() string
Click to show internal directories.
Click to hide internal directories.