Help us shape the future of Go! Take the 2026 Go Developer Survey

blocklist

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocklist

type Blocklist interface {
	IsBlocked(str string) bool
}

func NewBlocklist

func NewBlocklist(patterns []string) Blocklist

func NewBlocklistFromString

func NewBlocklistFromString(commaSeparatedBlocklist string) Blocklist

func NewEmptyBlocklist

func NewEmptyBlocklist() Blocklist

type BlocklistImpl

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

func (*BlocklistImpl) IsBlocked

func (b *BlocklistImpl) IsBlocked(str string) bool

Jump to

Keyboard shortcuts

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