Tarocch1 / kid

Simple web framework written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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")
}

About

Simple web framework written in Go

License:MIT License


Languages

Language:Go 100.0%