ua

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

DO NOT EDIT Code generated by ua/index/main.go"

DO NOT EDIT Code generated by ua/bot/make_bot.go

DO NOT EDIT Code generated by ua/client/make_client.go

DO NOT EDIT Code generated by ua/device/make_device.go

DO NOT EDIT Code generated by ua/os/make_os.go

DO NOT EDIT Code generated by ua/os/make_os.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(re string) string

func FromIndex

func FromIndex(i uint16) string

func IsRe

func IsRe(s string) bool

func IsStdRe

func IsStdRe(s string) bool

func ToIndex

func ToIndex(s string) uint16

Types

type Agent

type Agent struct {
	Os             string
	OsVersion      string
	Browser        string
	BrowserVersion string
}

func Parse

func Parse(s string) (a Agent)

type Re2Func

type Re2Func = func() *re2.Regexp

func MustCompile2

func MustCompile2(s string) Re2Func

type ReFunc

type ReFunc = func() *regexp.Regexp

func MustCompile

func MustCompile(s string) ReFunc

type ReMatch

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

func MatchRe

func MatchRe(s string) *ReMatch

func MatchRe2

func MatchRe2(s string) *ReMatch

func (*ReMatch) FirstSubmatch

func (r *ReMatch) FirstSubmatch(s string) string

func (*ReMatch) MatchString

func (r *ReMatch) MatchString(s string) bool

Directories

Path Synopsis
gen
bot
os

Jump to

Keyboard shortcuts

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