randomua

package module
v0.0.0-...-034f5a0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Unlicense Imports: 5 Imported by: 1

README

RandomUA PkgGoDev Go Report Card

This package generates a random user agent string from a preloaded, weighted set.

Thank you to intoli.com for releasing their dataset.

Installation

go get -u github.com/aidenesco/randomua

Usage

import "github.com/aidenesco/randomua"

func main() {
    ua := randomua.Random()

    fmt.Println(ua) // Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
}

Documentation

Overview

Package randomua generates User-Agent strings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Random

func Random() string

Random will give you a random User-Agent string

Types

This section is empty.

Jump to

Keyboard shortcuts

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