gf/README_ZH.MD

103 lines
4.6 KiB
Plaintext
Raw Normal View History

2018-12-17 19:41:08 +08:00
# GoFrame
<img align="right" height="150px" src="https://gfer.me/cover.png">
2018-11-30 20:37:28 +08:00
2018-12-17 20:44:38 +08:00
[![Go Doc](https://godoc.org/github.com/johng-cn/gf?status.svg)](https://godoc.org/github.com/johng-cn/gf)
[![Build Status](https://travis-ci.org/johng-cn/gf.svg?branch=master)](https://travis-ci.org/johng-cn/gf)
[![Go Report](https://goreportcard.com/badge/github.com/johng-cn/gf)](https://goreportcard.com/report/github.com/johng-cn/gf)
[![Documents](https://img.shields.io/badge/docs-100%25-green.svg)](https://gfer.me)
[![License](https://img.shields.io/github/license/johng-cn/gf.svg?style=flat)](https://github.com/johng-cn/gf)
2018-12-17 20:51:49 +08:00
[![Language](https://img.shields.io/badge/language-go-blue.svg)](https://github.com/johng-cn/gf)
2018-12-17 20:44:38 +08:00
[![Release](https://img.shields.io/github/release/johng-cn/gf.svg?style=flat)](https://github.com/johng-cn/gf/releases)
<!--
2018-12-17 19:50:35 +08:00
[![Code Coverage](https://codecov.io/gh/johng-cn/gf/branch/master/graph/badge.svg)](https://codecov.io/gh/johng-cn/gf)
2018-12-17 20:44:38 +08:00
[![Code Helper](https://www.codetriage.com/johng-cn/gf/badges/users.svg)](https://www.codetriage.com/johng-cn/gf)
-->
2018-11-30 20:37:28 +08:00
`GF(Go Frame)`是一款模块化、松耦合、轻量级、高性能的Go应用开发框架。支持热重启、热更新、多域名、多端口、多服务、HTTP/HTTPS、动态路由等特性
并提供了Web服务开发的系列核心组件Router、Cookie、Session、服务注册、配置管理、模板引擎、数据校验、分页管理、数据库ORM等等等等
并且提供了数十个内置核心开发模块集缓存、日志、时间、命令行、二进制、文件锁、内存锁、对象池、连接池、数据编码、进程管理、进程通信、文件监控、定时任务、TCP/UDP组件、
并发安全容器等等等等等等。
2018-12-27 13:27:04 +08:00
# 特点
* 模块化、松耦合设计;
* 丰富实用的开发模块;
* 详尽的开发文档及示例;
* 完善的本地中文化支持;
* 致力于项目的通用方案;
* 更适合企业及团队使用;
* 更多请查阅文档及源码;
2018-11-30 20:37:28 +08:00
# 安装
```html
go get -u gitee.com/johng/gf
```
2018-12-22 21:50:47 +08:00
或者
`go.mod`
```
require gitee.com/johng/gf latest
```
2018-11-30 20:37:28 +08:00
# 限制
```shell
golang版本 >= 1.9.2
```
# 架构
<div align=center>
<img src="https://gfer.me/images/arch.png"/>
</div>
2018-12-27 13:27:04 +08:00
2018-11-30 20:37:28 +08:00
# 文档
[https://gfer.me](https://gfer.me)
# 使用
```go
package main
import (
"gitee.com/johng/gf/g"
"gitee.com/johng/gf/g/net/ghttp"
)
func main() {
s := g.Server()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Write("Hello World")
})
s.Run()
}
2018-12-27 09:22:07 +08:00
```
2018-12-27 09:57:54 +08:00
[更多..](https://gfer.me/start/index)
# 协议
2018-12-27 09:59:56 +08:00
`GF` 使用非常友好的 [MIT](LICENSE) 开源协议进行发布,永久`100%`开源免费。
2018-12-27 09:57:54 +08:00
2018-12-27 09:22:07 +08:00
# 贡献者
2018-12-27 09:45:04 +08:00
<a href="https://gitee.com/johng" target="_blank" title="John"><img src="https://gitee.com/uploads/27/1309327_johng.png?1530630243" width="60" align="left"></a>
<a href="https://gitee.com/wenzi1" target="_blank" title="蚊子"><img src="https://gfer.me/images/contributors/wenzi.png" width="60" align="left"></a>
<a href="https://gitee.com/zseeker" target="_blank" title="zseeker"><img src="https://gfer.me/images/contributors/zseeker.png" width="60" align="left"></a>
2018-12-27 20:47:13 +08:00
<a href="https://gitee.com/ymrjqyy" target="_blank" title="一墨染尽青衣颜"><img src="https://images.gitee.com/uploads/27/876827_ymrjqyy.png" width="60" align="left"></a>
2018-12-27 09:45:04 +08:00
<a href="https://github.com/chenyang351" target="_blank" title="chenyang351"><img src="https://avatars1.githubusercontent.com/u/30063958?s=60&v=4" width="60" align="left"></a>
<a href="https://gitee.com/wxkj" target="_blank" title="wxkj"><img src="https://gitee.com/uploads/56/91356_wxkj.png" width="60" align="left"></a>
2018-12-27 09:22:07 +08:00
<a href="https://github.com/wxkj001" target="_blank" title="3wxkj001
2018-12-27 09:45:04 +08:00
"><img src="https://avatars0.githubusercontent.com/u/7794279?s=60&v=4" width="60" align="left"></a>
2018-12-27 20:47:13 +08:00
<a href="https://gitee.com/zhangjinfu" target="_blank" title="张金富"><img src="https://images.gitee.com/uploads/63/356163_zhangjinfu.png" width="60" align="left"></a>
2018-12-27 09:45:04 +08:00
<a href="https://gitee.com/garfieldkwong" target="_blank" title="GarfieldKwong"><img src="https://gfer.me/images/contributors/garfieldkwong.png" width="60" align="left"></a>
2018-12-27 13:27:57 +08:00
<br /><br /><br />
2018-12-27 09:46:35 +08:00
2018-12-27 09:45:04 +08:00
# 捐赠者
2018-12-27 09:22:07 +08:00
2018-12-27 09:45:04 +08:00
<a href="https://gitee.com/zfan_codes" target="_blank" title="范钟"><img src="https://images.gitee.com/uploads/32/2044832_zfan_codes.png" width="60" align="left"></a>
2018-12-27 09:22:07 +08:00
2018-12-27 09:45:04 +08:00
<a href="https://gitee.com/hailaz" target="_blank" title="HaiLaz"><img src="https://gitee.com/uploads/87/1273187_hailaz.png" width="60" align="left"></a>
2018-12-27 09:22:07 +08:00
2018-12-27 09:45:04 +08:00
<a href="https://gitee.com/mg91" target="_blank" title="mg91"><img src="https://images.gitee.com/uploads/30/1410930_mg91.png" width="60" align="left"></a>