Tags: gotmc/query
Tags
Wrap errors with context, use %q in Bool error, and guard Int overflow Wrap all query and parse errors with fmt.Errorf %w so callers get context about which command failed and can use errors.Is/errors.As. Use %q in Bool error message to make whitespace visible. Add bounds check in Int before float64-to-int cast to prevent silent overflow on 32-bit platforms. Add TruncationError type for non-integer floats. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add context.Context to Querier interface and all query functions Update the Querier interface and all typed query functions (Bool, Int, Float64, String, and their format variants) to accept context.Context as the first parameter. Update copyright to 2026. Add CLAUDE.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>