useragent

package
v0.28.3-rc-crdb Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package useragent implements parts of https://tools.ietf.org/html/rfc7231#section-5.5.3 and https://tools.ietf.org/html/rfc2616#section-14.43

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("useragent")

Error is the default error class.

Functions

This section is empty.

Types

type Info

type Info struct {
	Product Product

	Full string
}

Info contains parsed user agent.

func Parse

func Parse(s string) (Info, error)

Parse parses user agent string to information.

type Product

type Product struct {
	Name    string
	Version string
}

Product is an user agent product.

Jump to

Keyboard shortcuts

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