Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Nov 8, 2024
1 parent 1a02238 commit 105bbf6
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func UploadShow(r *ghttp.Request) {
r.Response.Write(`
<html>
<head>
<title>GF Upload File Demo</title>
<title>GoFrame Upload File Demo</title>
</head>
<body>
<form enctype="multipart/form-data" action="/upload" method="post">
Expand All @@ -55,7 +55,7 @@ func UploadShowBatch(r *ghttp.Request) {
r.Response.Write(`
<html>
<head>
<title>GF Upload Files Demo</title>
<title>GoFrame Upload Files Demo</title>
</head>
<body>
<form enctype="multipart/form-data" action="/upload" method="post">
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/WEB服务开发/异常处理.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ $ curl -v "http://127.0.0.1:8199/api.v2/user/list"
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Server: GF HTTP Server
< Server: GoFrame HTTP Server
< Date: Sun, 19 Jul 2020 07:44:30 GMT
< Content-Length: 52
< Content-Type: text/plain; charset=utf-8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
$ curl -i http://127.0.0.1:8199/json
HTTP/1.1 200 OK
Content-Type: application/json
Server: GF HTTP Server
Server: GoFrame HTTP Server
Date: Sun, 05 Jan 2020 02:49:31 GMT
Content-Length: 22

Expand Down Expand Up @@ -95,7 +95,7 @@ func main() {
```bash
$ curl -i "http://127.0.0.1:8199/jsonp?callback=MyCallback"
HTTP/1.1 200 OK
Server: GF HTTP Server
Server: GoFrame HTTP Server
Date: Sun, 05 Jan 2020 02:50:42 GMT
Content-Length: 34
Content-Type: text/plain; charset=utf-8
Expand Down Expand Up @@ -135,7 +135,7 @@ func main() {
$ curl -i http://127.0.0.1:8199/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Server: GF HTTP Server
Server: GoFrame HTTP Server
Date: Sun, 05 Jan 2020 03:00:55 GMT
Content-Length: 76

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/WEB服务开发/高级特性/CORS跨域处理.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Middleware(r *ghttp.Request) {

### `OPTIONS` 请求

有的客户端,部分浏览器在发送 `AJAX` 请求之前会首先发送 `OPTIONS` 预请求检测后续请求是否允许发送。 `GF` 框架的 `Server` 完全遵守 `W3C` 关于 `OPTIONS` 请求方法的规范约定,因此只要服务端设置好 `CORS` 中间件, `OPTIONS` 请求也将会自动支持。
有的客户端,部分浏览器在发送 `AJAX` 请求之前会首先发送 `OPTIONS` 预请求检测后续请求是否允许发送。 `GoFrame` 框架的 `Server` 完全遵守 `W3C` 关于 `OPTIONS` 请求方法的规范约定,因此只要服务端设置好 `CORS` 中间件, `OPTIONS` 请求也将会自动支持。

### 示例1,基本使用

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/WEB服务开发/高级特性/HOOK事件回调.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (d *Domain) BindHookHandlerByMap(pattern string, hookmap map[string]Handler
## 中间件与事件回调
中间件( `Middleware`)与事件回调( `HOOK`)是 `GF` 框架的两大流程控制特性,两者都可用于控制请求流程,并且也都支持绑定特定的路由规则。但两者区别也是非常明显的。
中间件( `Middleware`)与事件回调( `HOOK`)是 `GoFrame` 框架的两大流程控制特性,两者都可用于控制请求流程,并且也都支持绑定特定的路由规则。但两者区别也是非常明显的。
1. 首先,中间件侧重于应用级的流程控制,而事件回调侧重于服务级流程控制;也就是说中间件的作用域仅限于应用,而事件回调的“权限”更强大,属于 `Server` 级别,并可处理静态文件的请求回调。
2. 其次,中间件设计采用了“洋葱”设计模型;而事件回调采用的是特定事件的钩子触发设计。
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/其他资料/GoFrame社区教程.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GoFrame基本介绍,安装和部署, `WEB` 项目,路由注册、 `HTTP`

#### 开发工具链

`GF` 工具链介绍:主要讲解安装,更新,项目初始化,热编译,交叉编译, `model` 生成,打二进制包, `docker` 等。
`GoFrame` 工具链介绍:主要讲解安装,更新,项目初始化,热编译,交叉编译, `model` 生成,打二进制包, `docker` 等。

- 教程介绍: [https://studygolang.com/articles/28319](https://studygolang.com/articles/28319)
- `bilibili` 教程地址: [https://www.bilibili.com/video/BV1YK4y1b7W8/](https://www.bilibili.com/video/BV1YK4y1b7W8/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/core/gdb-chaining-fields-filtering'
title: 'ORM链式操作-字段过滤'
sidebar_position: 6
hide_title: true
keywords: [GoFrame,GoFrame框架,ORM,字段过滤,Fields,FieldsEx,OmitEmpty,OmitNil,GF DAO,数据表]
keywords: [GoFrame,GoFrame框架,ORM,字段过滤,Fields,FieldsEx,OmitEmpty,OmitNil,GoFrame DAO,数据表]
description: '本文介绍了在使用GoFrame框架进行数据库操作时如何进行字段过滤。详细描述了Fields和FieldsEx方法的用途与示例,并深入探讨了OmitEmpty及OmitNil特性如何帮助在数据库写入过程中过滤空值数据。此外,还探讨了在数据查询过程中空值对条件参数的影响。'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/core/gdb-chaining-query-example'
title: 'ORM查询-常用操作示例'
sidebar_position: 9
hide_title: true
keywords: [GoFrame,ORM查询,数据库操作,链式查询,常用条件,统计方法,字段唯一性,查询示例,GF框架,参数过滤]
keywords: [GoFrame,ORM查询,数据库操作,链式查询,常用条件,统计方法,字段唯一性,查询示例,GoFrame框架,参数过滤]
description: '本文提供了使用GoFrame框架进行ORM查询的常用操作示例,包括IN、LIKE、MIN/MAX/AVG/SUM等操作,同时介绍了WhereIn、WhereNotIn、WhereBetween等链式查询方法的使用,通过案例帮助理解不同的查询策略和参数过滤方式。'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: '本文介绍了GoFrame框架中如何处理模型关联的设计

`gf``ORM` 没有采用其他 `ORM` 常见的 `BelongsTo`, `HasOne`, `HasMany`, `ManyToMany` 这样的模型关联设计,这样的关联关系维护较繁琐,例如外键约束、额外的标签备注等,对开发者有一定的心智负担。因此 `gf` 框架不倾向于通过向模型结构体中注入过多复杂的标签内容、关联属性或方法,并一如既往地尝试着简化设计,目标是使得模型关联查询尽可能得易于理解、使用便捷。
:::warning
接下来关于 `gf ORM` 提供的模型关联实现,从 `GF v1.13.6` 版本开始提供,目前属于实验性特性。
接下来关于 `gf ORM` 提供的模型关联实现,从 `GoFrame v1.13.6` 版本开始提供,目前属于实验性特性。
:::
那么我们就使用一个例子来介绍 `gf ORM` 提供的模型关联吧。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ slug: '/docs/core/gvalid-optional-rule'
title: '数据校验-可选校验'
sidebar_position: 4
hide_title: true
keywords: [GoFrame,GoFrame框架,数据校验,可选校验,校验规则,示例,校验组件,参数校验,编程,GF框架]
description: '本文档详细介绍了如何使用GoFrame框架进行数据校验,尤其是针对可选校验规则的使用。当校验规则中不包含'required'时,可选校验规则不会强制校验空字符串或nil值。文档提供了多个实际代码示例,展示了在Go语言中通过GoFrame框架实现可选数据校验的过程和注意事项,适合开发者在项目中应用。'
keywords: [GoFrame,GoFrame框架,数据校验,可选校验,校验规则,示例,校验组件,参数校验,编程,GoFrame框架]
description: '本文档详细介绍了如何使用GoFrame框架进行数据校验,尤其是针对可选校验规则的使用。当校验规则中不包含required时,可选校验规则不会强制校验空字符串或nil值。文档提供了多个实际代码示例,展示了在Go语言中通过GoFrame框架实现可选数据校验的过程和注意事项,适合开发者在项目中应用。'
---

## 可选校验规则
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: '本章节介绍GoFrame框架中glog组件的日志滚动切分特
:::warning
滚动切分目前属于实验性特性,如有问题请随时反馈。
:::
之前的章节中我们知道, `glog` 组件支持通过设置日志文件名称的方式,使得日志文件按照日期进行输出。从 `GF v1.12` 版本开始, `glog` 组件也支持对日志文件进行滚动切分的特性,该特性涉及到日志对象配置属性中的以下几个配置项:
之前的章节中我们知道, `glog` 组件支持通过设置日志文件名称的方式,使得日志文件按照日期进行输出。从 `GoFrame v1.12` 版本开始, `glog` 组件也支持对日志文件进行滚动切分的特性,该特性涉及到日志对象配置属性中的以下几个配置项:

```go
RotateSize int64 // Rotate the logging file if its size > 0 in bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/core/gview-more'
title: '模板引擎-其他使用'
sidebar_position: 6
hide_title: true
keywords: [GoFrame,GoFrame框架,模板引擎,I18N支持,HTTP对象视图,控制器视图管理,gf框架,gview,模板解析,WebServer]
keywords: [GoFrame,GoFrame框架,模板引擎,I18N支持,HTTP对象视图,控制器视图管理,GoFrame框架,gview,模板解析,WebServer]
description: '本文档介绍了如何在GoFrame框架中使用模板引擎的不同功能,包括支持I18N特性及在Http对象和控制器中的实现。通过示例代码,我们展示了模板解析语法和在多线程环境下的数据隔离管理。也包含了不推荐的控制器注册方式的使用注意事项。'
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/组件列表/功能调试/功能调试.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/components/debug'
title: '功能调试'
sidebar_position: 9
hide_title: true
keywords: [功能调试,调试工具,代码调试,错误排查,GoFrame,GF框架,开发者工具,调试技术,性能优化,问题解决]
keywords: [功能调试,调试工具,代码调试,错误排查,GoFrame,GoFrame框架,开发者工具,调试技术,性能优化,问题解决]
description: '本页面介绍如何使用GoFrame框架进行功能调试。通过提供有效的调试工具和方法,帮助开发者快速识别和解决代码中的错误问题,提升开发效率和性能。'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/components/container-gset'
title: '集合类型-gset'
sidebar_position: 2
hide_title: true
keywords: [GoFrame,GoFrame框架,gset,集合类型,并发安全,元素集合,Go语言,集合操作,GF框架,集合接口]
keywords: [GoFrame,GoFrame框架,gset,集合类型,并发安全,元素集合,Go语言,集合操作,GoFrame框架,集合接口]
description: '本文档介绍了GoFrame框架中的集合类型gset,其特点是不重复元素集合,支持任意类型的元素。gset提供了并发安全的选项,是一种高效的集合操作工具,适合在Go语言中应用。提供了详细的使用方式及接口文档链接,便于开发者查阅。'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/components/container-gset-benchmark'
title: '集合类型-性能测试'
sidebar_position: 1
hide_title: true
keywords: [GoFrame,性能测试,集合类型,container,benchmark,测试,GF框架,gset,GoFrame框架,优化]
keywords: [GoFrame,性能测试,集合类型,container,benchmark,测试,GoFrame框架,gset,GoFrame框架,优化]
description: '本文档介绍了在GoFrame框架中集合类型的性能测试结果,包含各种数据类型如整数、任意数据类型和字符串的集合操作的基准测试。这些基准测试展示了不同集合操作的性能指标,帮助开发者优化代码性能并在使用GoFrame框架构建高效应用时提高效率。'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ slug: '/docs/components/os-gstructs'
title: '对象信息-gstructs'
sidebar_position: 18
hide_title: true
keywords: [GoFrame,GoFrame框架,gstructs,结构体信息,字段检索,TagMapName,Fields方法,GF框架,中间件编写,底层组件]
keywords: [GoFrame,GoFrame框架,gstructs,结构体信息,字段检索,TagMapName,Fields方法,GoFrame框架,中间件编写,底层组件]
description: 'gstructs组件是GoFrame框架中用于获取结构体信息的底层工具。主要用于框架、基础库和中间件编写,支持Fields方法获取结构体字段信息以及TagMapName方法通过标签检索字段。适合开发者在构建Go应用时利用此组件进行字段操作和检索。'
---

Expand Down
4 changes: 2 additions & 2 deletions docs/release/历史版本记录 v1.x/v1.11 2020-01-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ description: 'GoFrame是一款模块化、高性能、生产级的Go基础开发

`GF(Go Frame)` [https://goframe.org](https://wiki.goframe.org) 是一款模块化、高性能、生产级的Go基础开发框架。实现了比较完善的基础设施建设,包括常用的核心开发组件, 如:缓存、日志、文件、时间、队列、数组、集合、字符串、定时器、命令行、文件锁、内存锁、对象池、连接池、资源管理、数据校验、数据编码、文件监控、 定时任务、数据库ORM、TCP/UDP组件、进程管理/通信、并发安全容器等等。 并提供了Web服务开发的系列核心组件,如:Router、Cookie、Session、Middleware、服务注册、配置管理、模板引擎等等, 支持热重启、热更新、多域名、多端口、多服务、HTTPS、Rewrite等特性。

`GF` 有着丰富的基础模块、完善的工具链、详尽的开发文档。开源近两年以来, `GF` 得到越来越多小伙伴的肯定和支持,从寂寂无名到现在被广泛应用于微服务、物联网、区块链、电商系统、银行系统等企业级的生产项目中,经历了百万级、千万级项目的考验,2019年度被码云 `gitee` 评选为 `GVP` 最有价值开源项目。 `GF` 正在快速地成长中,目前保持着1-2个月迭代版本的发布规律,社区活跃,欢迎加入 `GF` 大家庭。
`GoFrame` 有着丰富的基础模块、完善的工具链、详尽的开发文档。开源近两年以来, `GoFrame` 得到越来越多小伙伴的肯定和支持,从寂寂无名到现在被广泛应用于微服务、物联网、区块链、电商系统、银行系统等企业级的生产项目中,经历了百万级、千万级项目的考验,2019年度被码云 `gitee` 评选为 `GVP` 最有价值开源项目。 `GoFrame` 正在快速地成长中,目前保持着1-2个月迭代版本的发布规律,社区活跃,欢迎加入 `GoFrame` 大家庭。

最后,祝大家2020新年快乐,鼠年大吉!

### 新特性

1. 新年新气象,官网文档大量更新: [https://goframe.org/index](https://wiki.goframe.org/index)
2. `GF` 工具链更新: [https://goframe.org/toolchain/cli](https://wiki.goframe.org/toolchain/cli)
2. `GoFrame` 工具链更新: [https://goframe.org/toolchain/cli](https://wiki.goframe.org/toolchain/cli)
- 新增 `gf run` 热编译运行命令;
- 新增 `gf docker` Docker镜像编译命令;
- 新增 `gf gen model` 强大的模型自动生成命令;
Expand Down
Loading

0 comments on commit 105bbf6

Please sign in to comment.