useragent

package
v0.0.0-...-9c02708 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Headers      http.Header
	CipherSuites []uint16
	Browser      string
}

Agent represents a browser profile.

func New

func New(cfg Config) (*Agent, error)

New creates a new User-Agent based on the provided config.

type Config

type Config struct {
	Browser  string
	Platform string
	Desktop  bool
	Mobile   bool
	Custom   string
}

Config allows for filtering user agents.

Jump to

Keyboard shortcuts

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