Skip to content

arsharaj/project-servo

Project : Servo

High performance web server for modern applications

Go Reference

Features

  • Graceful Shutdown
  • Structured Logging
  • Configuration Management
  • Middleware Support
  • Routing
  • JSON Response System
  • Unit and Integration Testing

Requirements

  • go : 1.24.4

Folder Structure

root
├── .github
├── config
├── docs
├── handlers
├── logger
├── middleware
├── server
├── tests
│   ├── handlers
│   └── middleware
└── utils

Documentation

View full documentation at pkg.go.dev

Packages

  • config: Loads app configuration from .env or environment variables.
  • server: Initializes and manages the HTTP server.
  • handlers: Contains route handlers like health check.
  • middleware: Provides logging and panic recovery middleware.
  • utils: Sends consistent JSON success/error responses.

Running Tests

Run the following command to execute the test suite : go test ./tests/...

Contributing

We welcome contributions! Please read CONTRIBUTING.md for guidelines.

Versioning

This project uses Semantic Versioning.

License

MIT License