This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Single-package Go library (github.com/gotmc/query) providing typed convenience functions for parsing string responses from a Querier interface. Designed for instrument communication (e.g., SCPI commands) where query results come back as strings that need conversion to Go types (bool, int, float64, string). Each type has a direct version and an f (format) variant that accepts fmt.Sprintf-style arguments. All functions take a context.Context as their first parameter.
# Format and vet
just check
# Run unit tests (depends on check)
just unit
# Lint (requires golangci-lint, config in .golangci.yaml)
just lint
# Test coverage HTML report
just cover
# Run a single test
go test -run TestBool ./...query.go— All library code:Querierinterface and typed query functions (Bool,Int,Float64,String+fvariants).Inthandles scientific notation strings by falling back toParseFloat.query_test.go— Table-driven tests using a mockquerystruct that implementsQuerierwith amap[string]string.- No external dependencies (stdlib only).