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

pathglob

package
v0.10.18 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pathglob is the glob language of `paths:` in note frontmatter: slash-separated segments matched as in path.Match, `**` for any number of segments, and a trailing `/` covering everything beneath. The code-map hook and the crawler's --include/--exclude share it, so one pattern means the same thing everywhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, rel string) bool

Match reports whether rel (slash-separated, relative to a root) matches pattern. A leading "./" on the pattern is ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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