fiber-skeleton

module
v0.0.0-...-21b4c63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: MIT

README

fiber-skeleton

Unlike chi-skeleton, this skeleton uses the incredibly fast Fiber framework, which is generally recommended.

Design

According to the above design concept, the final directory structure of this skeleton is as follows:

  • The cmd directory stores the entry file of the application, one file for each application
  • The config directory stores configuration files, which can have multiple configuration files
  • The internal directory stores various codes of the application
  • The mocks directory stores the generated mock code for testing
  • The pkg directory stores some packages that can be reused by the application
  • The storage directory stores files generated when the application is running
  • The web directory stores the front-end code of the application
  • go.mod and go.sum are used to manage dependencies

The internal directory refers to the design of Kratos, dividing the application into three layers: biz, data, and service, which are responsible for business logic, data access, and service layers respectively.

TODO

  • support protobuf
  • code generation tool

Credits

The development of this project refers to the following projects, I would like to express my gratitude:

Directories

Path Synopsis
cmd
app command
cli command
internal
app
biz
mocks
biz
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL