list

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(file io.Reader) ([]string, error)

Types

type Lister added in v0.2.0

type Lister struct {
	Items  []string
	Mather func(s, i string) bool
}

func New

func New(items []string, matcher func(s, i string) bool) *Lister

func (*Lister) Has added in v0.2.0

func (l *Lister) Has(i string) bool

func (*Lister) Insert added in v0.2.0

func (l *Lister) Insert(s string) error

Jump to

Keyboard shortcuts

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