Skip to content

Tarocch1/kid

Repository files navigation

Kid

Simple web framework written in Go

Go Reference

Installation

go get -u github.com/Tarocch1/kid

Quickstart

package main

import (
    "github.com/Tarocch1/kid"
    "github.com/Tarocch1/kid/middlewares/recovery"
)

func main() {
    k := kid.New()
    k.Use(recovery.New())

    k.Get("/", func(c *kid.Ctx) error {
        return c.String("Hello, World 👋!")
    })

    k.Listen(":3000")
}