coco-server

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT

README

coco-server

Go Reference

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

Directories

Path Synopsis
di

Jump to

Keyboard shortcuts

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