DEV Community

Cover image for A boilerplate for fiber versioning
Visarut Phusua
Visarut Phusua

Posted on

5 2

A boilerplate for fiber versioning

👋 Hello! I just created a boilerplate, clean architecture, API versioning, data versioning. Any feedback is welcome!

demo

Features ✨

  • API Versioning
  • Data Versioning
  • Dynamic Struct Type
  • Clean Architecture
  • Postman Collections
  • API Documentation with swagger

Project structure 📁

api
  ├── adapters
  │  └── mongo.go
  ├── app.go
  ├── handlers
  │  ├── errors.go
  │  ├── parser_body.go
  │  └── response.go
  ├── utilities
  │  ├── configuration.go
  │  └── converter.go
  └── versions
    ├── v1
    │  ├── entities
    │  ├── factories
    │  ├── repositories
    │  ├── routes
    │  └── usecases
    └── v2
        ├── entities
        ├── factories
        ├── repositories
        ├── routes
        └── usecases

Enter fullscreen mode Exit fullscreen mode

Here is my GitHub link for this project:

https://github.com/aofdev/fiber-versioning-boilerplate

Thank you for reading my post 😊
Thanks! Don't forget to give a ♥️ and follow :)

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (1)

Collapse
 
qwtmvxxv profile image
hfr22

Thanks for sharing your ideas!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay