- Simplify cmd/server/main.go from 158 to 57 lines (64% reduction) - Move HTTP server creation, graceful shutdown, and context management to pkg/server - Add Run() method to encapsulate server lifecycle management - Maintain all existing functionality and OpenTelemetry integration - Improve separation of concerns and code organization This refactoring makes cmd/server/main.go a thin entrypoint while moving all server implementation details to the pkg/server package, following Go best practices for package organization. Add server and greet binaries to .gitignore
24 lines
224 B
Plaintext
24 lines
224 B
Plaintext
# Binaries
|
|
*.exe
|
|
*.test
|
|
*.out
|
|
server
|
|
greet
|
|
|
|
# Dependency directories
|
|
vendor/
|
|
|
|
# Go workspace file
|
|
go.work
|
|
|
|
# IDE specific files
|
|
.idea/
|
|
.vscode/
|
|
|
|
# macOS specific files
|
|
.DS_Store
|
|
|
|
# Server runtime files
|
|
server.log
|
|
server.pid
|