useragent

package
v1.8.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBigSurOrNewer added in v1.8.0

func IsBigSurOrNewer() bool

IsBigSurOrNewer checks whether the host is MacOS BigSur 10.16.x or higher.

func IsCatalinaOrNewer

func IsCatalinaOrNewer() bool

IsCatalinaOrNewer checks whether the host is MacOS Catalina 10.15.x or higher.

Types

type UserAgent

type UserAgent struct {
	// contains filtered or unexported fields
}

func New

func New() *UserAgent

func (*UserAgent) HasClient

func (ua *UserAgent) HasClient() bool

func (*UserAgent) SetClient

func (ua *UserAgent) SetClient(name, version string)

func (*UserAgent) SetPlatform

func (ua *UserAgent) SetPlatform(platform string)

func (*UserAgent) String

func (ua *UserAgent) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL