koa-go

module
v0.0.0-...-bb95748 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: Apache-2.0

README

Introduction

A Koa implementation in Go Language. Inspired by its middleware mechanism, I designed overall framework purely by Go.

Environment

OS: Win11 x64 Go: 1.21+

Build Example

I'm lazy, how to use please see the sample code.

Take example/serve for example:

go build -o build/serve.exe github.com/clouddea/koa-go/example/serve
./build/serve --help
./build/serve

TODOs

  • finish implementation of Context API
  • finish implementation of Config API
  • finish implementation of Request API
  • finish implementation of Response API
  • finish implementation of other APIs

Reference

benchmark

77492.47 request/s in writing "hello world"

go install github.com/tsliwowicz/go-wrk@latest
go-wrk -help
go-wrk -c 128 -d 10 http://localhost:8080/test  # amd 7840h laptop

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL