reusable server boilerplate. using mux router and postgres.
consist of 3 main layers :
- Router
- Middleware
- Service
routers are consumed in start_server.go
then attached to mux router, db and other adapters. utils are also reusable.
import start_server.go to main.go
package main
import (
server "ModularHTTPGo"
)
create main function
func main() {
server.StartServer(":8080")
}