ua

package
v1.35.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Chrome        string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
	Edge          string = "" /* 129-byte string literal not displayed */
	AndroidChrome string = "Mozilla/5.0 (Linux; Android 11; Jelly2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36"
	ULIBDefault   string = "Mozilla/5.0 (compatible; ulib/1.34.0; +https://github.com/3JoB/ulib/)"
	Nex           string = "; "
)

Variables

This section is empty.

Functions

func GenerateUA

func GenerateUA(c Config) string

Types

type Config

type Config struct {
	AddCompatible  bool
	DisableSysInfo bool
	DisableULIB    bool
	CompatibleInfo string
	CompatibleUrl  string
	SoftInfo       string
}

Jump to

Keyboard shortcuts

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