https://github.com/mojixcoder/kid
Kid is a micro web framework written in Go.
https://github.com/mojixcoder/kid
go golang kid web-framework
Last synced: 4 months ago
JSON representation
Kid is a micro web framework written in Go.
- Host: GitHub
- URL: https://github.com/mojixcoder/kid
- Owner: mojixcoder
- License: mit
- Created: 2022-12-23T21:17:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T14:54:26.000Z (over 1 year ago)
- Last Synced: 2025-11-22T18:17:49.548Z (7 months ago)
- Topics: go, golang, kid, web-framework
- Language: Go
- Homepage: https://pkg.go.dev/github.com/mojixcoder/kid
- Size: 139 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.codacy.com/gh/mojixcoder/kid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mojixcoder/kid&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/mojixcoder/kid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mojixcoder/kid&utm_campaign=Badge_Coverage)
### Kid Micro Web Framework
___
**Kid** is a micro web framework written in Go. It aims to keep its core simple and yet powerful. It's fully compatible with net/http interfaces and can be adapted with other net/http compatible packages as well.
### Features
___
- Robust tree-based router.
- Path parameters.
- Router groups.
- Rich built-in responses(JSON, HTML, XML, string, byte).
- Middlewares.
- Zero dependency, only standard library.
- Compatible with net/http interfaces.
- Extendable, you can also use your own JSON, XML serializers or HTML renderer.
### Versioning
___
This package follows [semver](https://semver.org/) versioning.
#### Quick Start
___
To install Kid Go 1.21 or higher is required: `go get github.com/mojixcoder/kid`
Create `server.go`:
```go
package main
import (
"net/http"
"github.com/mojixcoder/kid"
)
func main() {
k := kid.New()
k.Get("/hello", helloHandler)
k.Run()
}
func helloHandler(c *kid.Context) {
c.JSON(http.StatusOK, kid.Map{"message": "Hello Kid!"})
}
```