A boilerplate for fiber versioning | DevsDay.ru

IT-блоги A boilerplate for fiber versioning

dev.to 14 октября 2021 г.


👋 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

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 :)

Источник: dev.to

Наш сайт является информационным посредником. Сообщить о нарушении авторских прав.

go fiber api showdev