glob

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 1 Imported by: 0

README

Documentation

Index

Constants

View Source
const GLOB = '*'

The character which is treated like a glob

Variables

This section is empty.

Functions

func Glob

func Glob(pattern, subj string) bool

Glob will test a string pattern, potentially containing globs, against a subject string. The result is a simple true/false, determining whether or not the glob pattern matched the subject text.

func IsNonLiteral added in v0.5.1

func IsNonLiteral(input string) bool

contains glob or escaped glob (so can't be matched just using string eq)

Types

This section is empty.

Jump to

Keyboard shortcuts

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