match

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package match implements SQL LIKE-style pattern matching for the Go filtering paths, so they return the same rows as the SQLite index paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Like

func Like(value, pattern string) bool

Like reports whether value matches pattern. % matches any sequence of characters, every other character including _ is literal, and matching is case-insensitive.

func ToSQLLike

func ToSQLLike(pattern string) string

ToSQLLike converts a pattern into the SQL LIKE equivalent of Like: lowercased for case-insensitive comparison against a lowercased column, % left as the wildcard, and _ escaped so it matches itself. The resulting pattern requires ESCAPE '\' on the LIKE clause.

Types

This section is empty.

Jump to

Keyboard shortcuts

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