mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
118 lines
3.7 KiB
Markdown
118 lines
3.7 KiB
Markdown
# GoFrame
|
||
<img align="right" height="150px" src="https://goframe.org/cover.png">
|
||
|
||
[](https://godoc.org/github.com/gogf/gf)
|
||
[](https://travis-ci.org/gogf/gf)
|
||
[](https://goreportcard.com/report/github.com/gogf/gf)
|
||
[](https://codecov.io/gh/gogf/gf/branch/master)
|
||
[](https://github.com/gogf/gf)
|
||
[](https://github.com/gogf/gf)
|
||
|
||
`GF(Go Frame)`是一款模块化、松耦合、生产级Go应用开发框架。提供了常用的核心开发组件,如:缓存、日志、文件、时间、队列、数组、集合、字符串、定时器、命令行、文件锁、内存锁、对象池、连接池、数据校验、数据编码、文件监控、定时任务、数据库ORM、TCP/UDP组件、进程管理/通信、
|
||
并发安全容器等等。并提供了Web服务开发的系列核心组件,如:Router、Cookie、Session、服务注册、配置管理、模板引擎等等,支持热重启、热更新、多域名、多端口、多服务、HTTPS、Rewrite等特性。
|
||
|
||
|
||
# 特点
|
||
* 模块化、松耦合设计;
|
||
* 丰富实用的开发模块;
|
||
* 详尽的开发文档及示例;
|
||
* 完善的本地中文化支持;
|
||
* 致力于项目的通用方案;
|
||
* 更适合企业及团队使用;
|
||
* 更多请查阅文档及源码;
|
||
|
||
# 安装
|
||
```html
|
||
go get -u github.com/gogf/gf
|
||
```
|
||
或者
|
||
`go.mod`:
|
||
```
|
||
require github.com/gogf/gf latest
|
||
```
|
||
|
||
# 限制
|
||
```shell
|
||
golang版本 >= 1.9.2
|
||
```
|
||
|
||
# 架构
|
||
<div align=center>
|
||
<img src="https://goframe.org/images/arch.png"/>
|
||
</div>
|
||
|
||
|
||
|
||
# 文档
|
||
|
||
开发文档:[https://goframe.org](https://goframe.org)
|
||
|
||
接口文档:[https://godoc.org/github.com/gogf/gf](https://godoc.org/github.com/gogf/gf)
|
||
|
||
# 使用
|
||
```go
|
||
package main
|
||
|
||
import (
|
||
"github.com/gogf/gf/g"
|
||
"github.com/gogf/gf/g/net/ghttp"
|
||
)
|
||
|
||
func main() {
|
||
s := g.Server()
|
||
s.BindHandler("/", func(r *ghttp.Request) {
|
||
r.Response.Write("Hello World")
|
||
})
|
||
s.Run()
|
||
}
|
||
```
|
||
|
||
[更多..](https://goframe.org/start/index)
|
||
|
||
|
||
# 协议
|
||
|
||
`GF` 使用非常友好的 [MIT](LICENSE) 开源协议进行发布,永久`100%`开源免费。
|
||
|
||
# 捐赠
|
||
|
||
捐赠支持`GF`框架的研发,
|
||
请在捐赠时备注您的`github`/`gitee`账号名称。
|
||
|
||
<a href="https://goframe.org/images/donate.png" target="_blank">
|
||
<img src="https://goframe.org/images/donate.png" width="300"/>
|
||
</a>
|
||
|
||
# 贡献者
|
||
|
||
- [aloncn](https://github.com/aloncn)
|
||
- [chenyang351](https://github.com/chenyang351)
|
||
- [garfieldkwong](https://gitee.com/garfieldkwong)
|
||
- [hailaz](https://gitee.com/hailaz)
|
||
- [johng](https://johng.cn)
|
||
- [jroam](https://github.com/jroam)
|
||
- [pibigstar](https://github.com/pibigstar)
|
||
- [qq1054000800](https://gitee.com/qq1054000800)
|
||
- [qq976739120](https://github.com/qq976739120)
|
||
- [touzijiao](https://github.com/touzijiao)
|
||
- [wenzi1](https://gitee.com/wenzi1)
|
||
- [wxkj001](https://github.com/wxkj001)
|
||
- [ymrjqyy](https://gitee.com/ymrjqyy)
|
||
- [youyixiao](https://github.com/youyixiao)
|
||
- [zhangjinfu](https://gitee.com/zhangjinfu)
|
||
- [zhaopengme](https://github.com/zhaopengme)
|
||
- [zseeker](https://gitee.com/zseeker)
|
||
|
||
# 捐赠者
|
||
|
||
- [flyke-xu](https://gitee.com/flyke-xu)
|
||
- [hailaz](https://gitee.com/hailaz)
|
||
- [ireadx](https://github.com/ireadx)
|
||
- [mg91](https://gitee.com/mg91)
|
||
- [pibigstar](https://github.com/pibigstar)
|
||
- [tiangenglan](https://gitee.com/tiangenglan)
|
||
- [wxkj](https://gitee.com/wxkj)
|
||
- [zhuhuan12](https://gitee.com/zhuhuan12)
|
||
- [zfan_codes](https://gitee.com/zfan_codes)
|
||
|