Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phachon/fastgo
A simple, fast go web development framework. 简单方便快速的 go web 开发框架
https://github.com/phachon/fastgo
fasthttp fasthttprouter go go-framework go-study go-web-application go-web-framework golang web-framework
Last synced: about 1 month ago
JSON representation
A simple, fast go web development framework. 简单方便快速的 go web 开发框架
- Host: GitHub
- URL: https://github.com/phachon/fastgo
- Owner: phachon
- License: mit
- Created: 2018-03-30T02:53:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T02:11:53.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:07:26.650Z (6 months ago)
- Topics: fasthttp, fasthttprouter, go, go-framework, go-study, go-web-application, go-web-framework, golang, web-framework
- Language: JavaScript
- Homepage:
- Size: 346 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![logo](./logo.png)](https://github.com/phachon/fastgo)
[![build](https://img.shields.io/shippable/5444c5ecb904a4b21567b0ff.svg)](https://travis-ci.org/phachon/fastgo)
[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/phachon/fastgo)
[![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/phachon/fastgo/master/LICENSE)
[![go_Report](https://goreportcard.com/badge/github.com/phachon/fastgo)](https://goreportcard.com/report/github.com/phachon/fastgo)
[![release](https://img.shields.io/github/release/phachon/fastgo.svg?style=flat)](https://github.com/phachon/fastgo/releases)
[![powered_by](https://img.shields.io/badge/powered_by-Go-3362c2.svg?style=flat)]()
[![platforms](https://img.shields.io/badge/platform-All-yellow.svg?style=flat)]()fastgo 是一个基于 [fasthttp](https://github.com/valyala/fasthttp), [fasthttprouter](https://github.com/buaazp/fasthttprouter), [fasthttpsession](https://github.com/phachon/fasthttpsession) 搭建的快速的 Go Web 开发框架!
# 安装
要求是 Go 至少是 v1.7。
```shell
$ go get -u github.com/phachon/fastgo
$ go get ./...
```# 使用
```go
package mainimport (
"github.com/phachon/fastgo"
)type AuthorController struct{
fastgo.Controller
}func (this *AuthorController) Index() {
this.ReturnJson(map[string]string{
"data": "ok",
})
}func main() {
author := &AuthorController{}
fastgo.Route.GET("/author/index", author, "Index")fastgo.Run()
}```
# 文档
文档地址: [http://godoc.org/github.com/phachon/fastgo](http://godoc.org/github.com/phachon/fastgo)
## 示例
[完整的 MVC 登录示例](./_example/mvc)
# 组件
- [fasthttp](https://github.com/valyala/fasthttp)
- [fasthttprouter](https://github.com/buaazp/fasthttprouter)
- [fasthttpsession](https://github.com/phachon/fasthttpsession)
- [go-logger](https://github.com/phachon/go-logger)## 反馈
- 如果您喜欢该项目,请 [Start](https://github.com/phachon/fastgo/stargazers).
- 如果在使用过程中有任何问题, 请提交 [Issue](https://github.com/phachon/fastgo/issues).
- 如果您发现并解决了bug,请提交 [Pull Request](https://github.com/phachon/fastgo/pulls).
- 如果您想扩展 session 存储,欢迎 [Fork](https://github.com/phachon/fastgo/network/members) and merge this rep.
- 如果你想交个朋友,欢迎发邮件给 [[email protected]](mailto:[email protected]).## License
MIT
Thanks
---------
Create By [email protected]