useragent

package
v1.131.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAgent

type UserAgent struct {
	// Product identifier; its name or development codename.
	Product string `json:"product"`
	// Version number of the product.
	Version string `json:"version"`
	// Zero or more comments containing more details.
	Comment []string `json:"comment"`
}

UserAgent represents a User-Agent header.

func New

func New(product, version string, comment ...string) UserAgent

New returns a UserAgent.

func (UserAgent) String

func (ua UserAgent) String() string

String returns the string representation of UserAgent.

type UserAgents

type UserAgents []UserAgent

UserAgents represents one or more UserAgents.

func (UserAgents) String

func (uas UserAgents) String() string

String concatenates all the user-defined UserAgents.

Jump to

Keyboard shortcuts

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