glob

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package glob implements wildcard pattern matching algorithms for strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchLike

func MatchLike(pattern, s string) bool

MatchLike reports whether string s matches the SQL LIKE-style glob pattern. Supported wildcards are '_' (match any one character) and '%' (match zero or more characters). They can be escaped by '\' (escape character).

MatchLike requires pattern to match whole string, not just a substring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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