parser

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasIndex added in v1.0.3

func HasIndex(it *pattern.Pattern) bool

func ToIndexMap

func ToIndexMap(patterns []*pattern.Pattern) map[string]int

func ToList

func ToList(reader io.Reader) []string

func ToPatterns

func ToPatterns(reader io.Reader) []*pattern.Pattern

Types

type Index

type Index struct {
	Pattern *pattern.Pattern `json:"pattern"`
	Hash    string           `json:"hash"`
	Index   int              `json:"index"`
}

func ToIndex

func ToIndex(patterns []*pattern.Pattern) []*Index

Jump to

Keyboard shortcuts

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