/cyberia

a simple go web framework

Primary LanguageGo

cyberia

I am now working on Arc.

This is a simple abstraction of to simplify api development.

Cyberia has been inspired by Fiber, a library inspired by Express that runs on fasthttp aswell.

This library uses sonic, a fast json library for Go, implemented in Assembly, but you can change it to any other library that you want.

package main

import "github.com/intervinn/cyberia"

func main() {
    app := cyberia.New()

    router := app.Router(cyberia.WithCustomPrefix(""))

    router.GET("/", func(ctx *cyberia.Context) {
        ctx.JSON(map[string]string{
            "message": "hello, world!",
        })
    })

    app.RegisterRouter(router)

    app.Listen(":8080")
}