domainlist

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDomainName = errors.New("invalid doamin name")
)

error

Functions

This section is empty.

Types

type List

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

func LoadFormFile

func LoadFormFile(file string) (*List, error)

func LoadFormReader

func LoadFormReader(r io.Reader) (*List, error)

func New

func New() *List

func (*List) Add

func (l *List) Add(domain string) error

func (*List) Has

func (l *List) Has(domain string) bool

func (*List) Len

func (l *List) Len() int

Jump to

Keyboard shortcuts

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