Skip to content

fix(internal/sidekick/api): Clean up the Typez constants#5249

Merged
ianthehat merged 1 commit intogoogleapis:mainfrom
ianthehat:typez
Apr 9, 2026
Merged

fix(internal/sidekick/api): Clean up the Typez constants#5249
ianthehat merged 1 commit intogoogleapis:mainfrom
ianthehat:typez

Conversation

@ianthehat
Copy link
Copy Markdown
Contributor

Things that need to match external values should not use iota, instead we declare them directly.
The doc comment should belong to the block, rather than being a floating comment before the first constant.

@ianthehat ianthehat requested review from a team as code owners April 9, 2026 16:15
@coryan coryan changed the title fix (internal/sidekick/api): Clean up the Typez constants fix(internal/sidekick/api): Clean up the Typez constants Apr 9, 2026
@coryan coryan changed the title fix(internal/sidekick/api): Clean up the Typez constants fix (internal/sidekick/api): Clean up the Typez constants Apr 9, 2026
@coryan
Copy link
Copy Markdown
Contributor

coryan commented Apr 9, 2026

I tried to help with the title and failed. You have an extra space after fix . And I would have just said fix(sidekick): clean up the Typez constants

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the Typez constant definitions in internal/sidekick/api/model.go by explicitly assigning integer values instead of using iota, and adjusts the placement of the associated documentation comment. Feedback indicates that the Go doc comment for the Typez constants should be rephrased to start with the entity name, and the constant names themselves (ALL_CAPS_WITH_UNDERSCORES) violate the Go style guide's "Mixed Caps" rule and contain redundant suffixes.

Comment thread internal/sidekick/api/model.go
Comment thread internal/sidekick/api/model.go
@ianthehat ianthehat changed the title fix (internal/sidekick/api): Clean up the Typez constants fix(internal/sidekick/api): Clean up the Typez constants Apr 9, 2026
Things that need to match external values should not use iota, instead
we declare them directly.
The doc comment should belong to the block, rather than being a floating
comment before the first constant.
@ianthehat ianthehat merged commit bab828d into googleapis:main Apr 9, 2026
18 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