Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-the-way/anoweb
The lightweight and powerful web framework using the new way for Go.Another go the way.
https://github.com/go-the-way/anoweb
Last synced: about 1 month ago
JSON representation
The lightweight and powerful web framework using the new way for Go.Another go the way.
- Host: GitHub
- URL: https://github.com/go-the-way/anoweb
- Owner: go-the-way
- License: apache-2.0
- Created: 2022-03-03T01:29:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T05:36:40.000Z (over 2 years ago)
- Last Synced: 2024-08-03T19:10:01.990Z (5 months ago)
- Language: Go
- Size: 664 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go-extra - anoweb - 03-03T01:29:30Z|2022-07-18T05:36:40Z| (Web Frameworks / Fail injection)
README
# anoweb
```
_
| |
_____ ____ ___ _ _ _ _____ | |__
(____ || _ \ / _ \ | | | || ___ || _ \
/ ___ || | | || |_| || | | || ____|| |_) )
\_____||_| |_| \___/ \___/ |_____)|____/::anoweb::
The lightweight and powerful web framework using the new way for Go. Another go the way.
{{ Version @VER }}
{{ Powered by go-the-way }}
{{ https://github.com/go-the-way/anoweb }}
```
[![CircleCI](https://circleci.com/gh/go-the-way/anoweb/tree/main.svg?style=shield)](https://circleci.com/gh/go-the-way/anoweb/tree/main)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/go-the-way/anoweb)
[![codecov](https://codecov.io/gh/go-the-way/anoweb/branch/main/graph/badge.svg?token=8MAR3J959H)](https://codecov.io/gh/go-the-way/anoweb)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-the-way/anoweb)](https://goreportcard.com/report/github.com/go-the-way/anoweb)
[![GoDoc](https://pkg.go.dev/badge/github.com/go-the-way/anoweb?status.svg)](https://pkg.go.dev/github.com/go-the-way/anoweb?tab=doc)
[![Release](https://img.shields.io/github/release/go-the-way/anoweb.svg?style=flat-square)](https://github.com/go-the-way/anoweb/releases)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#web-frameworks)## Overview
- [Documents](https://github.com/go-the-way/anoweb/wikis)
- [Features](#Features)
- [Install](#Install)
- [Quickstart](#Quickstart)
- [Releases](https://github.com/go-the-way/anoweb/releases)
- [Todo](https://github.com/go-the-way/anoweb/blob/main/TODO.md)
- [Pull Request](https://github.com/go-the-way/anoweb/pulls)
- [Issues](https://github.com/go-the-way/anoweb/issues)
- [Thanks](#thanks)## Features
- Pure native, no third dependencies
- Basic & Variables & Group router
- REST-ful controllers
- Binding & validation
- Middleware supports
- Session supports
- Rich Response supports## Install
```
require github.com/go-the-way/anoweb latest
```## Quickstart
```go
package mainimport (
"fmt"
"io/ioutil"
"net/http"
"time"
"github.com/go-the-way/anoweb"
"github.com/go-the-way/anoweb/context"
)func main() {
go func() {
time.AfterFunc(time.Second, func() {
response, _ := http.Get("http://localhost:9494")
resp, _ := ioutil.ReadAll(response.Body)
fmt.Println(string(resp))
})
}()
anoweb.Default.Get("/", func(ctx *context.Context) {
ctx.Text("Hello world")
}).Run()
}
```### Thanks
* [JetBrains OpenSource](https://jb.gg/OpenSource)