list

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(file string) ([]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