Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b1nary-gr0up/piano
Simple and lightweight HTTP framework.
https://github.com/b1nary-gr0up/piano
go http
Last synced: 2 months ago
JSON representation
Simple and lightweight HTTP framework.
- Host: GitHub
- URL: https://github.com/b1nary-gr0up/piano
- Owner: B1NARY-GR0UP
- License: apache-2.0
- Created: 2023-01-06T13:18:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T05:12:50.000Z (7 months ago)
- Last Synced: 2024-07-13T06:27:11.668Z (7 months ago)
- Topics: go, http
- Language: Go
- Homepage:
- Size: 246 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![piano](images/PIANO.png)
PIANO is a simple and lightweight HTTP framework.
[![Go Report Card](https://goreportcard.com/badge/github.com/B1NARY-GR0UP/piano)](https://goreportcard.com/report/github.com/B1NARY-GR0UP/piano)
## Install
```shell
go get github.com/B1NARY-GR0UP/piano
```## Quick Start
```go
package mainimport (
"context""github.com/B1NARY-GR0UP/piano/core"
"github.com/B1NARY-GR0UP/piano/core/bin"
"github.com/B1NARY-GR0UP/piano/pkg/consts"
)func main() {
p := bin.Default()
p.GET("/hello", func(ctx context.Context, pk *core.PianoKey) {
pk.String(consts.StatusOK, "piano")
})
p.Play()
}
```Refer to [piano-examples](https://github.com/rainiring/piano-examples) for more information.
## Related Projects
- [PIANO-EXAMPLES](https://github.com/rainiring/piano-examples) | Examples for PIANO | `examples`
- [DREAMEMO](https://github.com/B1NARY-GR0UP/dreamemo) | A distributed cache with out-of-the-box, high-scalability, modular-design features. | `golang` `cache` `distributed`## Blogs
- [PIANO: A Simple and Lightweight HTTP Framework Implemented in Go](https://dev.to/justlorain/piano-a-simple-and-lightweight-http-framework-implemented-in-go-224p)
- [如何使用 channel 实现一个优雅退出功能?](https://juejin.cn/post/7207423263344427068)## Acknowledgement
Thanks for the IDE license support by [JetBrains OpenSource Support](https://jb.gg/OpenSourceSupport).
## License
PIANO is distributed under the [Apache License 2.0](./LICENSE). The licenses of third party dependencies of PIANO are explained [here](./licenses).
## ECOLOGY
PIANO is a Subproject of the BINARY WEB ECOLOGY