packet

package
v0.0.0-...-52b58a3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0, MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(vs []string, f func(string) bool) bool

Any returns true if one of the strings in the slice satisfies the predicate f.

func Include

func Include(vs []string, t string) bool

Include returns true if the target string t is in the slice.

func Index

func Index(vs []string, t string) int

Index returns the first index of the target string t, or -1 if no match is found.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider struct

func (*Provider) Addrs

func (p *Provider) Addrs(args map[string]string, l *log.Logger) ([]string, error)

Addrs function

func (*Provider) Help

func (p *Provider) Help() string

Help function

func (*Provider) SetUserAgent

func (p *Provider) SetUserAgent(s string)

SetUserAgent setter

Jump to

Keyboard shortcuts

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