Skip to content

Use backtick syntax for struct tags in hover docs#203

Merged
jupblb merged 1 commit intomainfrom
michal/ticks
Apr 14, 2026
Merged

Use backtick syntax for struct tags in hover docs#203
jupblb merged 1 commit intomainfrom
michal/ticks

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented Apr 14, 2026

Fixes #105.

Fixes #105. types.TypeString outputs struct tags with double-quote
escaping (e.g., "json:\"tag\""), but Go source uses backtick syntax.
Use strconv.Unquote to convert the escaped string back, then wrap it
in backticks for natural Go syntax in hover documentation.
@jupblb jupblb merged commit c2e37bb into main Apr 14, 2026
5 checks passed
@jupblb jupblb deleted the michal/ticks branch April 14, 2026 13:53
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.

Struct tags should use backtick string syntax in hover docs

1 participant