Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kesonan
Copy link
Collaborator

@kesonan kesonan commented Aug 12, 2025

No description provided.

@kesonan kesonan requested review from Copilot and kevwan and removed request for kevwan August 12, 2025 13:35

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kevwan kevwan requested a review from Copilot August 12, 2025 14:51

This comment was marked as outdated.

@kevwan kevwan requested a review from Copilot August 14, 2025 14:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Server-Sent Events (SSE) generation support to the goctl tool, allowing automatic generation of SSE-specific handlers and logic templates. The feature introduces conditional template selection based on the "sse" annotation in API specifications.

  • Adds SSE-specific templates for handlers and logic components
  • Implements conditional logic to generate different code paths for SSE vs standard HTTP handlers
  • Updates version to 1.8.6-alpha and fixes a typo in version tags

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
analyzer.go Adds validation to ensure SSE routes have response types
version.go Updates version to 1.8.6-alpha and fixes "pre-bata" typo
template.go Registers new SSE template files
sse_logic.tpl Template for SSE logic components with channel-based responses
sse_handler.tpl Template for SSE handlers with event streaming logic
genlogic.go Adds conditional SSE logic generation with modified signatures
genhandlers.go Implements SSE handler generation with template selection

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kevwan kevwan added this pull request to the merge queue Aug 15, 2025
Merged via the queue into zeromicro:master with commit 4bdb07f Aug 15, 2025
5 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