glob

package
v0.4.43 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(pattern string, list []string) []string

Find 返回给定列表中符合 pattern 的子列表

func Match

func Match(pattern, name string) bool

Match 执行通配符匹配

func MatchIn

func MatchIn(pattern string, list []string) bool

MatchIn 返回给定列表中是否有满足 pattern 的元素

func MatchListPatterns

func MatchListPatterns(list []string, patterns []string) bool

MatchListPatterns 对 list 中的每一个元素进行 MatchPatterns,有任一匹配则返回 true

func MatchPatterns

func MatchPatterns(data string, patterns []string) bool

MatchPatterns 返回 patterns 中是否存在一个模式可以与 data 进行 Match

Types

This section is empty.

Jump to

Keyboard shortcuts

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