matcher

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canon

func Canon(s string) string

Canon normalizes a tool name/pattern by trimming spaces and replacing both '/' and ':' with '_' for stable comparisons across different separators used in definitions and patterns.

func Match

func Match(pattern, name string) bool

Match returns true when pattern matches name using simple rules: - Exact match - '*' suffix means prefix match - Service-only pattern (no ':' and no '*') matches any method under that service

Types

This section is empty.

Jump to

Keyboard shortcuts

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