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

https://github.com/rakunlabs/ada

Go web framework
https://github.com/rakunlabs/ada

go-web-framework golang http-server

Last synced: 5 months ago
JSON representation

Go web framework

Awesome Lists containing this project

README

          

ada

[![License](https://img.shields.io/github/license/rakunlabs/ada?color=red&style=flat-square)](https://raw.githubusercontent.com/rakunlabs/ada/main/LICENSE)
[![Coverage](https://img.shields.io/sonar/coverage/rakunlabs_ada?logo=sonarcloud&server=https%3A%2F%2Fsonarcloud.io&style=flat-square)](https://sonarcloud.io/summary/overall?id=rakunlabs_ada)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/rakunlabs/ada/test.yml?branch=main&logo=github&style=flat-square&label=ci)](https://github.com/rakunlabs/ada/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/rakunlabs/ada?style=flat-square)](https://goreportcard.com/report/github.com/rakunlabs/ada)
[![Go PKG](https://raw.githubusercontent.com/rakunlabs/.github/main/assets/badges/gopkg.svg)](https://pkg.go.dev/github.com/rakunlabs/ada)
[![Web](https://img.shields.io/badge/web-document-blueviolet?style=flat-square)](https://rakunlabs.github.io/ada/)

Simple, flexible go web framework.

```sh
go get github.com/rakunlabs/ada
```

## Usage

> Check out the [guide](https://rakunlabs.github.io/ada/guide) for more details.

```go
package main

import (
"net/http"

"github.com/rakunlabs/ada"
)

func main() {
server := ada.New()
server.GET("/hello/{user}", SayHello)

server.Start(":8080")
}

// /////////////////////

func SayHello(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, " + r.PathValue("user")))
}
```