coco-server

Ein leichtgewichtiges, modular aufgebautes Go-Server-Framework.
Installation
go get github.com/a-digi/coco-server
Features
- Einfache Server-Konfiguration
- Routing und Middleware-Unterstützung
- Request- und Response-Handling
- Dependency Injection
- Logging
Beispiel
package main
import (
"github.com/a-digi/coco-server/server"
)
func main() {
srv := server.New()
srv.GET("/", func(ctx *server.Context) {
ctx.String(200, "Hallo, Welt!")
})
srv.Run(8080)
}
Verzeichnisstruktur
server/ – Hauptlogik des Frameworks
config.go – Konfiguration
log.go – Logging
pid.go – Prozessmanagement
port.go – Portverwaltung
server.go – Server-Logik
di/ – Dependency Injection
request/ – Request-Handling
response/ – Response-Handling
routing/ – Routing und Routenverwaltung
Dokumentation
Die vollständige Dokumentation findest du auf pkg.go.dev.
Lizenz
MIT License – siehe LICENSE