Skip to content

Add TextInfo option for extended text info in Go output#43

Merged
rjrodger merged 1 commit intomasterfrom
claude/add-text-info-option-CHsOq
Mar 1, 2026
Merged

Add TextInfo option for extended text info in Go output#43
rjrodger merged 1 commit intomasterfrom
claude/add-text-info-option-CHsOq

Conversation

@rjrodger
Copy link
Collaborator

@rjrodger rjrodger commented Mar 1, 2026

No description provided.

Introduce a Text struct with Quote and Str fields. When the TextInfo
option is enabled, string and text token values in the parsed output
are wrapped in Text instances instead of plain strings. The Quote
field records the quote character used (",' ,` for quoted strings,
empty for unquoted text) and Str holds the actual string value.

The option is off by default so existing behavior is unchanged.
Includes 20 unit tests covering all quote types, unquoted text,
maps, arrays, nested structures, mixed types, and verifying keys
remain plain strings.

https://claude.ai/code/session_01DmZRT53cbEtiRzmrhYQdfv
@rjrodger rjrodger merged commit e1bd896 into master Mar 1, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants