An open API service indexing awesome lists of open source software.

https://github.com/chyroc/gor

[toy] web framework for Golang
https://github.com/chyroc/gor

Last synced: 10 months ago
JSON representation

[toy] web framework for Golang

Awesome Lists containing this project

README

          

# gor
Fast, minimalist web framework for [Golang](https://golang.org/)

[![CircleCI](https://circleci.com/gh/Chyroc/gor/tree/master.svg?style=svg&circle-token=5cf109814e08b0d6eee1b4ba4a6e8b2a5c792c84)](https://circleci.com/gh/Chyroc/gor/tree/master)

```go
package main

import (
"fmt"
"log"

"github.com/Chyroc/gor"
)

func main() {
app := gor.NewGor()

app.Get("/", func(req *gor.Req, res *gor.Res) {
res.Send("Hello World")
})

log.Fatal(app.Listen(":3000"))
}
```

![](./examples/helloworld/screenshot.png)