popua

package module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 2 Imported by: 1

README

popua go.dev reference

popua, stands for Popular User Agent, is a generated go package provides popular user agent strings.

    ____              __  _____
   / __ \____  ____  / / / /   |
  / /_/ / __ \/ __ \/ / / / /| |
 / ____/ /_/ / /_/ / /_/ / ___ |
/_/    \____/ .___/\____/_/  |_|
           /_/

Data was retrieved from this page in JSON format and saved as user-agent.json.

Mirror: https://github.com/fake-useragent/fake-useragent/blob/master/src/fake_useragent/data/browsers.json

install

go get -d bitbucket.org/ai69/popua

Documentation

Overview

Package popua provides methods to get random popular user agent strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBySeed

func GetBySeed(seed string) string

GetBySeed returns a random popular user agent string, the same seed gets the same result.

func GetRandom

func GetRandom() string

GetRandom returns a random popular user agent string.

func GetWeightedBySeed

func GetWeightedBySeed(seed string) string

GetWeightedBySeed returns a weighted random popular user agent string, the same seed gets the same result.

func GetWeightedRandom

func GetWeightedRandom() string

GetWeightedRandom returns a weighted random popular user agent string.

func ListAll

func ListAll() []string

ListAll returns a list of popular user agent strings.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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