wildcard

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package wildcard implements simple pattern matching for strings with wildcard characters. Asterisk ("*"), which is the only supported wildcard, matches any character including another asterisk and an empty string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(s string) int

Count counts the number of instances of wildcard (*) in s.

func Match

func Match(pattern, s string) bool

Match reports whether string s contains any match of the pattern, which may use 0+ wildcards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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