Conversation
| func FormatResponse(greeting *Greeting) string { | ||
| func FormatGreetingResponse(greeting *Greeting) string { | ||
| return fmt.Sprintf("{\"greeting\":\"%s\"}", greeting.Greeting) | ||
| } |
There was a problem hiding this comment.
| } | |
| func FormatResponse(greeting *Greeting) string { | |
| return fmt.Sprintf("{\"greeting\":\"%s\"}", greeting.Greeting) | |
| } | |
|
/review |
Pull Request ReviewGeneral OpinionThis pull request successfully implements farewell functionality by mirroring the existing greeting system. The implementation follows the same patterns and structures as the existing code, which is good for consistency. The code accomplishes the stated task of adding farewell endpoints to the API. Required Changes to Make PR Acceptable
Suggestions Within Scope
Optional Improvements
Code Quality Assessment
SummaryThis pull request needs changes before it can be merged. The core functionality is well-implemented and follows good practices, but the broken test and missing test coverage for new features make it unacceptable in its current state. Once the test issues are resolved, this would be a solid addition to the codebase. The implementation correctly adds farewell functionality as requested, with proper API endpoints ( |
The greetings-api is so cool and greetings are just great.
What if the API could also return farewells instead of greetings?
I've implemented the API changes needed to add farewells