Merged
Conversation
- テンプレート描画エラーを適切にハンドリングし、500レスポンスを返すよう修正
- log/slog による構造化ログを導入(fmt.Println からの移行)
- 環境変数 PORT によるポート設定を可能にする(デフォルト: 8080)
- rand.Read のエラーハンドリングを追加
- Item に UpdatedAt フィールドを追加し、変更時刻を記録
- Store に DeleteList メソッドを追加
- POST /lists/{token}/delete エンドポイントを追加
Closes #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Issue #5 で特定された改善点を実装しました。
変更内容
tmpl.ExecuteTemplateのエラーを適切にハンドリングし、500 Internal Server Error を返すよう修正fmt.Printlnからlog/slogによる構造化ログに移行PORTでポートを設定可能にする(デフォルト: 8080)rand.Readのエラーを適切にハンドリングPOST /lists/{token}/deleteを追加テスト
既存のテストがすべてパスすることを確認済み。
Closes #5