filter

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByIdentifier

func FilterByIdentifier(cl md.ChapterList, field string, ranges Ranges) md.ChapterList

func FilterByLanguage

func FilterByLanguage(cl md.ChapterList, lang language.Tag) md.ChapterList

func FilterByRegex

func FilterByRegex(cl md.ChapterList, field string, pattern string) md.ChapterList

func MatchPattern

func MatchPattern(pattern, s string) bool

func RemoveDuplicates

func RemoveDuplicates(cl md.ChapterList) md.ChapterList

func SortByGroupViews

func SortByGroupViews(cl md.ChapterList) md.ChapterList

func SortByMost

func SortByMost(cl md.ChapterList) md.ChapterList

func SortByNewest

func SortByNewest(cl md.ChapterList) md.ChapterList

func SortByNewestGroup

func SortByNewestGroup(cl md.ChapterList) md.ChapterList

func SortByViews

func SortByViews(cl md.ChapterList) md.ChapterList

Types

type Filter

type Filter = func(md.ChapterList) (md.ChapterList, error)

type Ranges

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

func ParseRanges

func ParseRanges(s string) Ranges

func (*Ranges) Contains

func (rs *Ranges) Contains(id md.Identifier) bool

Jump to

Keyboard shortcuts

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