Skip to content

Conversation

gnvk
Copy link

@gnvk gnvk commented May 17, 2025

According to the Go WIKI

To signal that an identifier should not be used, add a paragraph to its doc comment that begins with Deprecated: followed by some information about the deprecation, and a recommendation on what to use instead, if applicable.

Emphasis is mine. Without putting the "Deprecated:" part to its own paragraph, automated tools and IDEs (e.g. vscode) don't recognize the deprecation warning.

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.

1 participant