keywords

package
v0.0.0-...-d3948d2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 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 KeywordList

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

func (*KeywordList) Add

func (kl *KeywordList) Add(keyword string)

Add a string to keywords list

func (*KeywordList) AddRaw

func (kl *KeywordList) AddRaw(keywords []string)

Add some string to keywords list

func (*KeywordList) Find

func (kl *KeywordList) Find(input string) []string

Find some string from keywords list

func (*KeywordList) Length

func (kl *KeywordList) Length() int

Length get keyword list length

func (*KeywordList) List

func (kl *KeywordList) List() []string

func (*KeywordList) Remove

func (kl *KeywordList) Remove(keyword string)

Remove a string from keywords list

type KeywordListOption

type KeywordListOption func(o *options)

KeywordListOption KeywordList options

func Retrieve

func Retrieve(num int64) KeywordListOption

Retrieve keywords retrieve numbers

type Keywords

type Keywords interface {
	Add(keyword string)
	AddRaw(keywords []string)
	Remove(keyword string)
	Find(input string) []string
	List() []string
	Length() int
}

func NewKeywordList

func NewKeywordList(opts ...KeywordListOption) Keywords

NewKeywordList init

Jump to

Keyboard shortcuts

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