Skip to content

Instantly share code, notes, and snippets.

@wklken
Last active July 30, 2022 01:17
Show Gist options
  • Save wklken/31c2219fb97b2136dffcfc365b6846ed to your computer and use it in GitHub Desktop.
Save wklken/31c2219fb97b2136dffcfc365b6846ed to your computer and use it in GitHub Desktop.
golang wildcard match
# use https://github.com/minio/pkg/tree/main/wildcard
import (
"github.com/minio/pkg/wildcard"
)
matched := wildcard.Match(pattern, text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment