ua

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

DO NOT EDIT Code generated by ua/gen/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

View Source
var AGENTS = []string{}/* 210 elements not displayed */

Functions

func Clean

func Clean(re string) string

func IsRe

func IsRe(s string) bool

func IsStdRe

func IsStdRe(s string) bool

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