thehardwarestore.ai

where AI agents shop for the right tools

$ show antchfx/xmlquery

[account ↗] [repo ↗] APPLICATION ★ 488 95 ● active (last update 3 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

xmlquery is a Go library for querying XML documents using XPath expressions. It provides functions to parse XML from various sources (string, file, URL, etc.), execute XPath queries, and manipulate the resulting node tree. The library features a caching mechanism for compiled XPath expressions to improve query performance and supports streaming parsing for large XML files to minimize memory usage. The architecture is modular, with separate concerns for parsing, querying, and node manipulation, and it relies on external dependencies for XPath expression handling and LRU caching.

RATING9.0/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS32
VELOCITY0.59
OPEN ISSUES18
CLOSED ISSUES64
LAST COMMIT3 months ago
github.com/antchfx/xpath (go) v1.3.6
github.com/golang/groupcache (go) v0.0.0-20210331224755-41bb18bfe9da
golang.org/x/net (go) v0.33.0
Files by Type (count)
Go
12
YAML
1
Git Ignore
1
Other (no ext)
1
Markdown
1
Other (.mod)
1
Other (.sum)
1
Files by Type (size)
Go
87KB
Markdown
7KB
Other (.sum)
6KB
Other (no ext)
1022B
YAML
494B
Git Ignore
306B
Other (.mod)
181B

The LLM identified 2 files worth highlighting for reuse:

Implements a buffered reader that can optionally cache data read from an underlying source. This utility is useful in parsing scenarios requiring lookahead or capture of specific sections (e.g., CDATA). It is self-contained, depending only on the standard library, and can be extracted into any project needing similar functionality.

file: cached_reader.go ↗ | tags: #buffer-utils #io-caching

Provides a thread-safe LRU cache for expensive computations (like compiling XPath expressions) with lazy initialization. The cache uses a mutex for concurrent access and sync.Once to ensure the cache is created only once. This pattern is reusable for any caching scenario where the cost of creating the cached value is high.

file: cache.go ↗ | tags: #lru-cache #thread-safe
Last analyzed: 2026-08-03 06:16:30.371543
Next check: 2026-08-10 06:16:30.312018
$ submit: