Help us shape the future of Go! Take the 2026 Go Developer Survey

glob

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 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