22ea09f0c1
fix(contrib/drivers/pgsql): Fixed table field call issue in primary key acquisition logic ( #4546 )
...
`pgsql driver`中`getPrimaryKeys`未使用现有缓存,导致每次`insert`都会重新查询表字段
2026-05-18 20:36:38 +00:00
4080452ead
fix(contrib/drivers/pgsql): Fixed table field call issue in primary key acquisition logic ( #4546 )
...
`pgsql driver`中`getPrimaryKeys`未使用现有缓存,导致每次`insert`都会重新查询表字段
2025-12-08 16:27:17 +08:00
67a8a28a18
Update contrib/drivers/pgsql/pgsql_do_insert.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-08 15:01:01 +08:00
d8fa0a7922
Update contrib/drivers/pgsql/pgsql_do_insert.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-08 15:00:52 +08:00
b7cd39a8b8
up
2025-12-08 14:56:21 +08:00
01cd4a3384
up
2025-12-08 14:55:19 +08:00
111f8b3264
Update contrib/drivers/pgsql/pgsql_z_unit_upsert_test.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-08 14:54:48 +08:00
ba44475765
Update contrib/drivers/pgsql/pgsql_do_insert.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-08 14:54:26 +08:00
99536c8bef
up
2025-12-08 14:37:35 +08:00
91e3f1eab1
Merge branch 'master' of github.com:gogf/gf into feat/gdb-pgsql-replace
2025-12-08 11:40:45 +08:00
d353bf0fbc
feat(contrib/drivers/pgsql): more field types converting support ( #3737 )
...
This pull request significantly improves PostgreSQL array type handling
and conversion in the `pgsql` driver, providing more accurate type
mapping and conversion logic, especially for array types. It introduces
comprehensive documentation, refactors conversion logic to use the `pq`
package for array types, and adds extensive unit tests to ensure
correctness and error handling. Additionally, minor enhancements and
clarifications are made to upsert formatting and table field queries.
### PostgreSQL Array Type Handling and Conversion
* Refactored `CheckLocalTypeForField` and `ConvertValueForLocal` methods
in `contrib/drivers/pgsql/pgsql_convert.go` to accurately map PostgreSQL
array types (such as `_int2`, `_int4`, `_int8`, `_float4`, `_float8`,
`_bool`, `_varchar`, `_text`, `_char`, `_bpchar`, `_numeric`,
`_decimal`, `_money`, `_bytea`) to their corresponding Go types, using
the `pq` package for conversion. Added detailed documentation and
mapping tables for supported types.
[[1]](diffhunk://#diff-a3b1e68bfa29fbcfda7c703bbe875fa82e958f6c3ad942ef82193a9dd8ad67e2R46-R63)
[[2]](diffhunk://#diff-a3b1e68bfa29fbcfda7c703bbe875fa82e958f6c3ad942ef82193a9dd8ad67e2L56-R103)
[[3]](diffhunk://#diff-a3b1e68bfa29fbcfda7c703bbe875fa82e958f6c3ad942ef82193a9dd8ad67e2R112-R209)
* Added comprehensive unit tests in
`contrib/drivers/pgsql/pgsql_z_unit_convert_test.go` to verify type
mapping and conversion for all supported array types, including error
cases for invalid input.
### Utility and API Improvements
* Added a new `Bools()` method to the `gvar.Var` type in
`container/gvar/gvar_slice.go` for converting values to `[]bool`, with
corresponding unit tests in `container/gvar/gvar_z_unit_slice_test.go`.
[[1]](diffhunk://#diff-32e887e540e0170f785508d105cb794e4d54d854b53b6950973c80022973c490R11-R15)
[[2]](diffhunk://#diff-01453eca4d4b3e35d07ca105cb924c6441d0cd9df6cbcc337a89832c8d53057fR24-R41)
### SQL Formatting and Documentation
* Improved documentation and formatting in the upsert logic of
`contrib/drivers/pgsql/pgsql_format_upsert.go` to clarify the use of
`EXCLUDED` in PostgreSQL's `ON CONFLICT DO UPDATE`.
* Enhanced readability of the table field query in
`contrib/drivers/pgsql/pgsql_table_fields.go` by reformatting SQL and
clarifying field extraction.
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: houseme <housemecn@gmail.com >
2025-12-08 11:18:45 +08:00
ffe65d9d4a
merge master
2025-12-04 20:41:28 +08:00
8723999afc
up
2025-12-04 20:33:08 +08:00
baf30a0e99
feat(contrib/drivers/dm): add Replace/InsertIgnore support and field type/length enhancements for dm database ( #4541 )
...
This pull request introduces significant improvements to the DM database
driver, especially around insert operations, and refines documentation
and tests to reflect these changes. The main focus is enabling support
for "replace" and "insert ignore" operations using DM's `MERGE`
statement, improving type reporting for table fields, and updating
documentation for clarity and accuracy.
### DM Driver Insert Operations
* Added support for `Replace` and `InsertIgnore` operations in the DM
driver by internally mapping them to DM's `MERGE` statement. This
enables upsert and insert-ignore behavior for DM databases, improving
compatibility with other drivers.
* Implemented helper methods (`doMergeInsert`, `doInsertIgnore`, and
`getPrimaryKeys`) to generate correct `MERGE` SQL statements and
automatically detect primary keys when needed.
[[1]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL31-R94)
[[2]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL115-R212)
* Updated the logic for building update values and SQL generation to
ensure correct behavior for both upsert and insert-ignore cases.
[[1]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL61-R109)
[[2]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL89-R132)
[[3]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL100-R144)
[[4]](diffhunk://#diff-f51b30e3f0b0f1284b905385a89992efd0de2fe9ff8c5a4062344dfab17d428eL115-R212)
### Table Field Type Reporting
* Improved the DM driver's `TableFields` method to report column types
with length/precision (e.g., `VARCHAR(128)` instead of just `VARCHAR`),
aligning with expectations and other drivers.
[[1]](diffhunk://#diff-40a365112421ae1967bd960f8acefcc91ddb8180865b78bc49cd090fbf4883daL26-R26)
[[2]](diffhunk://#diff-40a365112421ae1967bd960f8acefcc91ddb8180865b78bc49cd090fbf4883daR88-R105)
* Updated related unit tests to expect the new type format for DM table
fields.
### Documentation Updates
* Removed outdated or redundant documentation in both English and
Chinese driver README files, and clarified supported features and
limitations for DM and other drivers.
[[1]](diffhunk://#diff-d49f5bc3a34b11a6ccb82cc54675b06a7dea5f0a943ae91c4ca0d28bd5003299L1)
[[2]](diffhunk://#diff-d49f5bc3a34b11a6ccb82cc54675b06a7dea5f0a943ae91c4ca0d28bd5003299L47-R46)
[[3]](diffhunk://#diff-d49f5bc3a34b11a6ccb82cc54675b06a7dea5f0a943ae91c4ca0d28bd5003299L119-L122)
[[4]](diffhunk://#diff-05411a14e9c7ca235f7f436bfde732853aa93b364361fe80d65ac768f4e4d613L1-L126)
### Test Suite Enhancements
* Refactored and restored unit tests for DM driver insert operations,
including tests for `Save`, `Insert`, and the new `InsertIgnore`
functionality to ensure correct behavior and compatibility.
[[1]](diffhunk://#diff-2b1a59b8b2adaa1ca3074629374ab122929e4d4fbb4cc794b8e1db60ebf8d4c2L143-L245)
[[2]](diffhunk://#diff-2b1a59b8b2adaa1ca3074629374ab122929e4d4fbb4cc794b8e1db60ebf8d4c2R512-R632)
* Minor adjustments to DM test initialization for improved clarity.
### Core Insert Logic Minor Refactoring
* Minor variable renaming for clarity in the core insert logic
(`gdb_core.go`), improving code readability.
[[1]](diffhunk://#diff-b1bbe5e3995261813e4e0ac6ffee8a37c236eaa2759f2bd82e211711695a70bcL449-R452)
[[2]](diffhunk://#diff-b1bbe5e3995261813e4e0ac6ffee8a37c236eaa2759f2bd82e211711695a70bcL466-R474)
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-04 20:12:12 +08:00
0d122d6fee
up
2025-12-04 17:33:57 +08:00
63c2bb7c86
feat(contrib/drivers/dm): add Replace/InsertIgnore support for dm
2025-12-04 17:29:39 +08:00
6e0ba551f9
ci(release): disable go module caching in release workflow ( #4539 )
...
Resolves TODO comment requesting cache to be disabled for the
`actions/setup-go` step in the release workflow.
- Add `cache: false` to `actions/setup-go@v5` configuration
- Remove the now-completed TODO comment
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
> 处理 TODO: 禁用缓存 (来自 .github/workflows/release.yml)
</details>
Created from VS Code via the [GitHub Pull
Request](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github )
extension.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey ).
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <29968474+hailaz@users.noreply.github.com >
2025-12-04 14:27:01 +08:00
1650aab340
fix: update gf cli to v2.9.6 ( #4538 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-12-04 11:44:05 +08:00
bb9133ab9d
fix: v2.9.6 ( #4537 )
2025-12-04 11:35:32 +08:00
48845c3473
fix(contrib/drivers/mssql): update tables SQL query for better compatibility ( #4170 )
...
修复gf gen在sqlserver上的异常问题:
1. https://github.com/gogf/gf/issues/1722
2. https://github.com/gogf/gf/issues/1761
```powershell
> gf gen dao
fetching tables failed: SELECT NAME FROM SYSOBJECTS WHERE XTYPE='U' AND STATUS >= 0 ORDER BY NAME: mssql: 对象名
'SYSOBJECTS' 无效。
1. SELECT NAME FROM SYSOBJECTS WHERE XTYPE='U' AND STATUS >= 0 ORDER BY NAME
2. mssql: 对象名 'SYSOBJECTS' 无效。
```
在SqlServer 2022已测试通过:

---------
Co-authored-by: hailaz <739476267@qq.com >
2025-12-03 23:42:16 +08:00
ea956189bf
feat(contrib/drivers/dm): add WherePri support ( #4157 )
...
The Dameng database supports the wherepri method.
eg: `dao.User.Ctx(ctx).WherePri(id)`
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: John Guo <claymore1986@gmail.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-12-03 17:52:05 +08:00
3912d97811
fix(contrib/drivers/dm): support muti-line sql statement ( #4163 ) ( #4164 )
...
Co-authored-by: hailaz <739476267@qq.com >
2025-12-03 16:18:47 +08:00
50fb349bc9
docs: update Chinese documentation and add README.zh_CN.MD ( #4534 )
...
Enhance the Chinese documentation by adding a new README file and
updating existing database driver instructions with the latest `go get`
commands. Additionally, provide Chinese explanations for the `gf`
command documentation.
fix https://github.com/gogf/gf/issues/4533
2025-12-01 09:35:06 +08:00
777d7aabb5
feat(container/gtree): add generic tree feature ( #4522 )
...
add generic tree feature
improve gmap.TreeMap
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-11-29 21:09:43 +08:00
5a67aac85d
feat(container/gmap): add generic list map feature ( #4520 )
...
add the generic list map: ListKVMap[K,V] and let ListMap base on it.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-29 20:57:41 +08:00
132a5ab9a3
feat(container/gmap): add generic map feature ( #4484 )
...
add hash kvmap and let other hash map base on it.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-28 21:41:30 +08:00
8575f01273
feat(container/gqueue): add generic queuefeature ( #4497 )
...
add TQueue
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-28 12:42:12 +08:00
ac75026716
feat(container/gring): add generic ring feature ( #4496 )
...
add TRing
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-28 11:50:09 +08:00
485a9637cc
feat(container/gpool): add generic pool feature ( #4493 )
...
add TPool[T] and let Pool base on it.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-11-27 18:18:37 +08:00
b57b49ecca
fix(ci): Free Disk Space ( #4529 )
...
改用新的方法,清理其他不必要的目录以获取更多可用空间
2025-11-27 16:47:10 +08:00
cdead46c79
fix(ci): update script permissions and add docker cleanup functionality ( #4523 )
2025-11-25 14:55:56 +08:00
a4883e6e3d
feat(container/gset): add generic set feature ( #4492 )
...
Add generic set featrue: TSet[T]
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-24 17:47:36 +08:00
fe8ba5e35f
fix(database/gdb): Resolve column ambiguity in GROUP BY/ORDER BY with MySQL JOIN ( #4521 )
...
When using JOIN queries in MySQL with the `Group()` method, column names
in GROUP BY clauses become ambiguous if multiple tables contain columns
with the same name (commonly `id`). This results in MySQL errors like
"Column 'id' in group statement is ambiguous".
**Example Issue:**
```go
model := t.Ctx(ctx).Fields("t_inf_job.*, t_inf_job_attr.*").
LeftJoin("t_inf_job_attr", "t_inf_job.id = t_inf_job_attr.job_id").
Where(t.Columns().Deleted, 0)
// This would fail with "Column 'id' in group statement is ambiguous"
err = model.Group(t.Columns().Id).Scan(&jobs)
```
### **Key Changes**
1. **Modified function signature**: `Group(groupBy ...string)` →
`Group(groupBy ...any)` to support Raw SQL expressions
2. **Auto-prefixing logic**: When JOINs are detected (by checking for "
JOIN " in the tables string), unqualified column names are automatically
prefixed with the primary table name
3. **Preserved existing behavior**: Already qualified columns
(containing ".") and Raw expressions are handled as before
4. **Added comprehensive test**: `Test_Model_Group_WithJoin` verifies
the fix works correctly with JOIN queries
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-11-24 15:57:20 +08:00
54b7c249fd
fix(os/gcfg): ignore fsnotify event error to avoid package gcfg totally failing ( #4400 )
...
问题描述: Windows 11
文件夹映射的网络驱动器里面的go项目在启动的时候会因为系统没有映射磁盘的文件事件监听而报错,从而导致整个项目启动失败,目前我临时的修复是将该错误改为警告进行打印
---------
Co-authored-by: anno <anno@anno.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-21 22:51:42 +08:00
99d69857fa
refactor(database/gdb): add quote for FieldsPrefix ( #4485 )
...
Code example:
``` go
var res *BasicInfo
err := g.DB().Model("basic_info").
FieldsPrefix("basic_info", basicInfoColumns).
Where("id", 35813305356386305).Scan(&res)
if err != nil {
panic(err)
}
g.Dump(res)
```
SQL generated before modification :
``` sql
SELECT basic_info.id,basic_info.full_name,basic_info.contact FROM `basic_info` WHERE (`id`=35813305356386305) AND `delete_time` IS NULL LIMIT 1
```
SQL generated after modification:
``` sql
SELECT `basic_info`.`id`,`basic_info`.`full_name`,`basic_info`.`contact` FROM `basic_info` WHERE (`id`=35813305356386305) AND `delete_time` IS NULL LIMIT 1
```
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-11-21 17:27:09 +08:00
1b26013a66
fix: update copyright notice in multiple files to specify correct file reference ( #4518 )
...
修复注释
2025-11-21 14:12:56 +08:00
6c2155bd26
feat(container/glist): add generic list feature ( #4483 )
...
It is wrote with glist.List's and list.List's source codes and improve
to support T type.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: hailaz <739476267@qq.com >
2025-11-20 18:20:19 +08:00
9018a3d4ac
feat(container/garray): enhance generic array implements ( #4482 )
...
Remove the t array of wrapper array. Now it's a real one. Other normal
array will base on it.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-19 18:11:04 +08:00
362d4202c4
fix(contrib/drivers/pgsql): Fixed the problem of overlapping fields in the same table name in pgsql multiple schema mode ( #4375 )
...
Co-authored-by: hailaz <739476267@qq.com >
2025-11-19 18:03:52 +08:00
a85b221d32
fix(contrib/config/apollo):where gcfg config apollo failed to retrieve configurations for multiple namespaces, where watch apollo change resulted in missing configurations. ( #4509 )
...
Fixed an issue where `gcfg config apollo` failed to retrieve
configurations for multiple namespaces; fixed an issue where `watch
apollo change` resulted in missing configurations.
---------
Co-authored-by: DAWN <xiongchao@cdfsunrise.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-11-19 16:18:55 +08:00
cb8594eb80
refactor(contrib/clickhouse): optimization clickhouse ( #4499 )
...
1. close stmt
2. fix assert *gtime.Time
2025-11-19 16:03:07 +08:00
ac88e640d1
fix(net/goai): swagger $ref replace ( #4512 )
...
修复swagger泛型导致的 []/三个特殊字符不支持
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-11-19 16:00:39 +08:00
2d307c5dd1
feat(contrib/drivers/pgsql): add array type numeric[] and decimal[] converting to Go []float64 support #4457 ( #4511 )
...
Co-authored-by: hailaz <739476267@qq.com >
2025-11-19 14:35:30 +08:00
54453c8e8f
fix(ci): add cache cleaning step to prevent 'no space left on device' errors ( #4513 )
...
修复ci runner免费的磁盘空间不足导致无法完成单元测试的问题
1. 移动example单测到ci sub中
2. 使用go clean -cache清理避免短期内再次出现空间不足的问题
2025-11-19 12:54:51 +08:00
072b962b81
fix(encoding/gjson): fix gjson data race ( #4510 )
2025-11-17 15:21:38 +08:00
a80f58b7f6
fix: update gf cli to v2.9.5 ( #4507 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-11-10 21:45:57 +08:00
1e3aa5f080
fix: v2.9.5 ( #4503 )
2025-11-10 21:40:35 +08:00
fde47e8981
fix(cmd/gf): The problem of the command 'gen dao' becoming very slow ( #4498 )
...
fixed #4479
修复gf gen dao执行严重变慢的问题
主要调整,降级两个依赖库
`go get golang.org/x/tools@v0.26 .0` // 直接依赖
`go get golang.org/x/text@v0.25 .0` // 间接依赖
至于为什么这两个库会导致慢,还需要深入排查
2025-11-10 17:38:50 +08:00
c02148cd6b
feat(container/garray): Sorted T Array ( #4470 )
...
Add the sorted T array
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-10-17 18:10:31 +08:00
1d4e684949
refactor(cmd/gf): Optimize run command to reload only on file write events ( #4476 )
...
优化run命令使得只在文件有写入事件时才触发reload:
gf run 的文件监控逻辑之前会对所有文件系统事件做出响应,包括非内容修改的事件(如文件access
time变化),这会导致开发过程中不必要的频繁重载。本次修改在文件监控回调中增加了event.IsWrite()的判断,确保只有在文件内容被实际写入时才触发重载逻辑,优化了开发体验。
2025-10-16 16:20:24 +08:00
8ff0de88b8
build(contrib): upgrade nacos registry&config ( #4473 )
...
RT
2025-10-16 11:29:44 +08:00
ac3efe5a00
feat(os/gcfg): Add file watcher with custom callback support ( #4446 )
...
为`gcfg`添加配置文件变更自定义回调,实现了`WatcherAdapter`接口,以下是`AdapterFile`的用法
test.yaml
```
b: "b"
```
```
package main
import (
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/os/gctx"
)
func main() {
ctx := gctx.New()
file, _ := gcfg.NewAdapterFile("test.yaml")
file.Data(ctx)
file.AddWatcher("test", func() {
value := file.MustGet(ctx, "b")
fmt.Println(value.String())
})
server := g.Server()
server.Run()
}
```
使用`g`和默认配置文件
```
file := g.Cfg().GetAdapter().(*gcfg.AdapterFile)
file.AddWatcher("test", func() {
})
file := g.Cfg().GetAdapter().(*gcfg.AdapterFile)
file.RemoveWatcher("test")
```
注意:由于`gf`的`AdapterFile`使用的监听到文件变化删除缓存下一次重新初始化的懒加载方案,所有除了默认加载的`config.xxx`文件外,自定义的配置文件像`test.yaml`之类的都需要在`AddWatcher`前主动读取一次数据进行初始化监听(
`g.Cfg("test").Data(ctx)`)
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunk Zhu <hunk@joy999.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 16:59:52 +08:00
2744fe2212
fix(net/gclient): fix content-type 'application/json;charset=utf-8' … ( #4369 )
...
fix(net/gclient): fix content-type 'application/json;charset=utf-8' can
not match `application/json`
---------
Co-authored-by: houseme <housemecn@gmail.com >
2025-10-15 16:14:33 +08:00
1682cc98bb
feat(gdb): Allow to set table field metadata and allow to generate table fields registration code when generating dao ( #4460 )
...
`gdb`在第一次查询时会拉取一次`table`的`fields meta`信息,为后续orm的字段过滤和时间特性服务,`gen
dao`时已经获得了`table`的所有`fields
meta`,提供一个生成`table`的功能,允许客户自行决定是否生成,是否注入已知表结构缓存到指定`db`实例。
1. 能解决部分兼容`mysql`的二开数据库在获取`fields meta`时无法和`mysql`保持一致的问题。
2.
可以模拟表字段信息而不需要真实的数据库连接,对于已知的表结构,可以直接设置缓存,在无法连接数据库的情况下,仍然可以使用表字段信息,使用gdb构建sql时不需要受限于实际数据库即可使用`gdb.ToSQL()`方法。
4. 提升访问速度
生成的示例目录
<img width="389" height="670" alt="SCR-20251010-ntne"
src="https://github.com/user-attachments/assets/ebb08e70-cce1-4b73-9128-6ff784e4df3b "
/>
生成的示例代码
```golang
// =================================================================================
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
// =================================================================================
package table
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
)
// RolePermissions defines the fields of table "role_permissions" with their properties.
// This map is used internally by GoFrame ORM to understand table structure.
var RolePermissions = map[string]*gdb.TableField{
"role_id": {
Index: 0,
Name: "role_id",
Type: "bigint unsigned",
Null: false,
Key: "PRI",
Default: nil,
Extra: "",
Comment: "",
},
"permission_id": {
Index: 1,
Name: "permission_id",
Type: "bigint unsigned",
Null: false,
Key: "PRI",
Default: nil,
Extra: "",
Comment: "",
},
"created_at": {
Index: 2,
Name: "created_at",
Type: "timestamp",
Null: false,
Key: "",
Default: "CURRENT_TIMESTAMP",
Extra: "DEFAULT_GENERATED",
Comment: "",
},
"updated_at": {
Index: 3,
Name: "updated_at",
Type: "timestamp",
Null: false,
Key: "",
Default: "CURRENT_TIMESTAMP",
Extra: "DEFAULT_GENERATED on update CURRENT_TIMESTAMP",
Comment: "",
},
"deleted_at": {
Index: 4,
Name: "deleted_at",
Type: "timestamp",
Null: true,
Key: "",
Default: nil,
Extra: "",
Comment: "",
},
}
// SetRolePermissionsTableFields registers the table fields definition to the database instance.
// db: database instance that implements gdb.DB interface.
// schema: optional schema/namespace name, especially for databases that support schemas.
func SetRolePermissionsTableFields(ctx context.Context, db gdb.DB, schema ...string) error {
return db.GetCore().SetTableFields(ctx, "role_permissions", RolePermissions, schema...)
}
```
2025-10-15 15:50:16 +08:00
2742c98c06
fix(os/gcron): unit testing case of package gcron occasionally failed ( #4419 )
...
fix https://github.com/gogf/gf/issues/3999
1. fix jobWaiter sync.WaitGroup data race
2. fix logger glog.ILogger data race
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:17:05 +08:00
4226a23a39
feat(container/garray): add TArray ( #4466 )
...
Add TArray[T] for wrapping Array
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:08:26 +08:00
b8e414e125
fix(os/gcache): defaultcache lazy init ( #4468 )
...
defaultcache更改为懒加载,在用户使用redis缓存时,避免了程序启动时不必要的初始化开销。
<img width="2638" height="806" alt="image"
src="https://github.com/user-attachments/assets/96bb0097-8463-4303-971c-ee1a9ef671a6 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:01:47 +08:00
08c34b5ed7
feat(gf/build): Add support for the Loongson architecture (loong64) ( #4467 )
...
添加对龙芯架构(loong64)的支持
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-10-15 14:38:42 +08:00
416f314390
fix(contrib/drivers/pgsql): Merge duplicated fields, especially for key constraints. ( #4465 )
...
pgsql 执行TableFields 或者字段信息时需要合并key信息
2025-10-13 18:16:09 +08:00
98f0c36a1d
fix: update gf cli to v2.9.4 ( #4463 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-10-11 15:10:30 +08:00
2b7b4c8581
fix: v2.9.4 ( #4461 )
...
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-10-11 14:58:01 +08:00
b8844f3d40
fix(net/ghttp): attachment filename support utf8 ( #4459 )
2025-10-10 10:32:02 +08:00
3e2176d799
fix:(cmd/gf): matching for table ex fix bug ( #4458 )
...
fix the bug: sometimes it won't remove all broad matching talbenames.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-10-09 12:08:28 +08:00
2f9225057f
fix(contrib/drivers/mysql): Fix unit test issue for batch insert in MySQL driver ( #4456 )
...
Resolve a temporary issue in the unit tests for batch insertion by
adjusting user IDs.
因为底层的插入随机性,会导致单元测试偶发失败。
2025-09-30 14:33:46 +08:00
7b373446dc
feat(cmd/gf): add broad matching to gf gen dao's tableEx attribute. ( #4453 )
...
Add "*" and "?" to tableEx for "gf gen dao".
The "*" will match none or some char. And the "?" only match one char.
Co-authored-by: hailaz <739476267@qq.com >
2025-09-30 11:27:03 +08:00
0f6d47c7a8
fix(container/gqueue): Optimize queue length calculation and loop structure in test cases ( #4455 )
...
fixed #4376
2025-09-29 17:26:39 +08:00
f24729206b
fix(database/gdb): Resolved the schema error in the database output log when using the database sharding feature ( #4319 )
...
error log
```
2025-06-18T15:36:08.315+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 0 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name` FROM `custom` WHERE `id`=1 LIMIT 1
2025-06-18T15:36:09.259+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 1 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name`,`remark`FROM `custom` WHERE `id`=2 LIMIT 1
```
right log
```
2025-06-18T15:36:08.315+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 0 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name` FROM `custom` WHERE `id`=1 LIMIT 1
2025-06-18T15:36:09.259+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 1 ms] [default] [db_1] [rows:1 ] SELECT `id`,`custom_name`,`remark`FROM `custom` WHERE `id`=2 LIMIT 1
```
```
type DbShardingRule struct {
}
func (d *DbShardingRule) SchemaName(ctx context.Context, config gdb.ShardingSchemaConfig, value any) (string, error) {
if name, ok := value.(string); ok && (len(name) > 0) && gstr.HasPrefix(name, config.Prefix) {
return name, nil
}
return "default", nil
}
func (d *DbShardingRule) TableName(ctx context.Context, config gdb.ShardingTableConfig, value any) (string, error) {
return "", nil
}
```
```
config := gdb.ShardingConfig{
Schema: gdb.ShardingSchemaConfig{
Enable: true,
Prefix: "db_",
Rule: &DbShardingRule{},
},
}
dao.Custom.Ctx(ctx).Sharding(config).ShardingValue("db_0").Where("id", 1).One()
dao.Custom.Ctx(ctx).Sharding(config).ShardingValue("db_1").Where("id", 2).One()
```
我有两个完全一样的数据库db_0和db_1,两个custom表里都只有一条数据,id是1和2,执行上面两条查询得的结果是正确的,
输出日志中应该分别是`[default] [db_0]`和`[default] [db_1]`,但是实际输出的都是`[default]
[db_0]`,
查看具体代码实现,该日志由Core实例中获取group和schema构成,而实际执行sql时如果使用了分库特性那么执行sql的link会使用当前面schema重新生成,但是没有重新赋给Core实例,所以输出日志的时候还是错的,只需要在生成link后生成日志前把schema赋给Core就行,方法执行完成后defer将schema重置回去,防止有人重复使用同一个gdb对象造成困扰




2025-09-28 17:57:27 +08:00
7e9715ab1d
feat(contrib/drivers/mssql): mssql support LastInsertId ( #4051 )
...
修复mssqlserver的InsertAndGetId方法;插入记录如果是自增主键则返回ID
---------
Co-authored-by: 林孝义 <linxy@3755.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-09-28 17:55:08 +08:00
f565a347c4
fix(database/gdb): Fix GetArray return type and add Bools method ( #4452 )
...
Change the return type of the GetArray method to Array for consistency
in data structure. Introduce a new Bools method to convert Vars to a
slice of bools, along with corresponding test cases to validate the
functionality.
```go
// 改进前
res, _ := db.Model(table).Fields("id").Array()
ids := make([]int64, 0, len(res))
for _, v := range res {
ids = append(ids, v.Int64())
}
g.Dump(ids)
// 改进后
res, _ := db.Model(table).Fields("id").Array()
ids := res.Int64s()
g.Dump(ids)
```
2025-09-28 17:08:37 +08:00
f172e61585
fix(net/ghttp): Server Domain if is empty str, bind handler pattern will add @ which is not expect #4100 ( #4101 )
...
fix https://github.com/gogf/gf/issues/4100
---------
Co-authored-by: elonnzhang <elonnzhang@tencent.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 18:49:36 +08:00
22d873f6bd
fix(gerror): Fixed serialization failure issue when gerror.Error text field contains quote symbols ( #4449 )
...
如果调用internal 下的json.Marshal时 参数如果是gerror.Error 并且 字段中带有符号" 会导致序列化失败
原因是原gerror.Error 的MarshalJson方法只对字符串做了简单的处理 如果err.Error 返回的字符串中有符号"
这个符号会在序列化的时候被认为是字符串的终止导致序列化失败
<img width="854" height="186" alt="image"
src="https://github.com/user-attachments/assets/9a1e6d72-943f-41ad-a487-8a3c0f28f9f0 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 16:07:47 +08:00
b60b04e27a
fix(database/gdb): performance improvement in fields grouping when in… ( #4440 )
...
fix https://github.com/gogf/gf/issues/3906
<img width="2604" height="980" alt="image"
src="https://github.com/user-attachments/assets/50852928-7ff5-4676-8ecf-6960c184e805 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 11:11:14 +08:00
d2bc5d812b
fix(cmd/gf): run AddSigHandlerShutdown cannot work well ( #4441 )
...
https://github.com/gogf/gf/issues/3752
Sending [Interrupt] on Windows is not implemented.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-23 10:58:24 +08:00
0648fd688e
fix(cmd/gf): add extra option to controller the behavior downloading … ( #4435 )
...
https://github.com/gogf/gf/issues/3938
2025-09-22 17:30:06 +08:00
d0cfcce85b
ci: Add CodeQL analysis workflow configuration ( #4436 )
2025-09-18 17:55:19 +08:00
2518d490c3
ci: Add Scorecard workflow for supply-chain security ( #4437 )
2025-09-18 17:55:03 +08:00
edc96a8c16
feat(database/gdb): Add the function of obtaining all configurations to facilitate business operations such as verification after addition. ( #4389 )
...
…ss operations such as verification after addition.
---------
Signed-off-by: sxp20008 <81209245@qq.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-18 16:21:02 +08:00
22427a08ad
docs(i18n/gi18n): deleting the duplicate package documents ( #4251 )
...
Avoid in https://pkg.go.dev/github.com/gogf/gf/v2/i18n/gi18n display
duplicate content.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-05 10:09:45 +08:00
41a5484620
fix(database/gredis): gredis support get raw client ( #4306 )
...
Fixes https://github.com/gogf/gf/issues/4298
Fixes https://github.com/gogf/gf/issues/2196
Fixes https://github.com/gogf/gf/issues/2135
```go
import goredis "github.com/redis/go-redis/v9"
func ExampleUsage(ctx context.Context, redis *Redis) error {
client := redis.Client()
universalClient, ok := client.(goredis.UniversalClient)
if !ok {
return errors.New("failed to assert to UniversalClient")
}
// Use universalClient for advanced operations like Pipeline
pipe := universalClient.Pipeline()
pipe.Set(ctx, "key1", "value1", 0)
pipe.Set(ctx, "key2", "value2", 0)
results, err := pipe.Exec(ctx)
if err != nil {
return err
}
// ... handle results
return nil
}
```
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-03 16:09:43 +08:00
325ee45a55
fix: update gf cli to v2.9.3 ( #4418 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-09-03 12:53:52 +08:00
627aa5d27f
fix: Update version to v2.9.3 ( #4417 )
...
Change all references from v2.9.2 to v2.9.3 and update the release name
accordingly.
2025-09-03 12:48:06 +08:00
47db44843e
fix(os/gtime): fix gtime time string handle logic ( #4409 )
...
1、gtime的StrToTime方法优化对时间字段格式兼容处理,并且针对时间越界抛出异常。
2、移除部分无用代码:
<img width="697" height="282" alt="image"
src="https://github.com/user-attachments/assets/92a88140-37c0-4ee1-aef7-c6418e9edd06 "
/>
Fixes #4394
---------
Signed-off-by: Zjmainstay <hzgdys@163.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-03 12:19:27 +08:00
a39498f74f
fix: update gf cli to v2.9.3-rc4 ( #4416 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-09-03 11:51:14 +08:00
80b866e11c
fix: Update dependencies and exclude test data from go.mod processing ( #4415 )
...
Update dependencies and ensure that go.mod files in the test data
directory are excluded from processing during the tag creation for the
CLI tool.
2025-09-03 11:42:44 +08:00
2a77d3203e
fix: Improve the typeMap check logic of "gf gen dao" ( #4410 )
...
Let it can support such as "Array(UInt256)", "Array(FixedString(25))".
Now we can typeMap as:
"array(uint256)": []big.Int
"array(fixedstring(25))": [25]string
"array(fixedstring)": []string
"array": []any
Now it will first match more precise rules. So it will match
array(uint256) and array(fixedstring(25)) first. Then the
"array(fixedstring)", the last is "array"
2025-09-03 11:16:38 +08:00
3c451bef82
fix: path ./cmd/gf ( #4414 )
2025-09-03 10:53:50 +08:00
5073f25691
chore: chmod +x update_version.sh ( #4413 )
2025-09-03 10:36:56 +08:00
40e97f1325
fix : #4269 ( #4412 )
...
fixed #4269
2025-09-02 22:49:05 +08:00
502d158bc0
fix: version 2.9.2 ( #4405 )
2025-09-01 15:33:50 +08:00
f08897a114
chore(tablewriter): upgrade to v1.0.9 and refactor table rendering logic ( #4352 )
...
### What’s Changed
* Upgraded `github.com/olekukonko/tablewriter` from previous version to
**v1.0.9**.
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-09-01 12:20:22 +08:00
b6181e4bde
fix: report coverage on the latest go version ( #4398 )
2025-08-29 16:10:37 +08:00
f8cdeae2d7
fix(net/goai): fix g.Meta is passed as parameters of a request ( #4397 )
...
fix https://github.com/gogf/gf/issues/4247
<img width="2860" height="2308" alt="image"
src="https://github.com/user-attachments/assets/755cfe8a-b3ae-4c5a-ba04-68cc1b188ca7 "
/>
2025-08-29 15:30:28 +08:00
bea060af4c
feat: update linter config and deprecation notice ( #4399 )
...
- Add `gofmt` rewrite-rules to `.golangci.yml` for code formatting
consistency.
- Update deprecation comment in `gpage.go` to specify removal in version
3.0.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-29 15:26:56 +08:00
94cc233325
fix: disable specific staticcheck rules and update lint config ( #4396 )
...
fix: disable specific staticcheck rules and update lint config
- Disabled staticcheck rules SA1029, SA1019, S1000, and related checks
in `.golangci.yml` to filter out unwanted linter errors.
- Updated staticcheck checks list for more precise linting control.
- Clarified configuration for easier maintenance and future updates.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-29 10:32:30 +08:00
71743e6903
chore: add OpenSSF Scorecard for README.md ( #3696 )
...
Why is this needed:
The OpenSSF Scorecard improves open-source project's security by
providing automated, transparent assessments of their security
practices. It will help you identify vulnerabilities, adhere to best
practices, and continuously enhance your security posture, increasing
user trust and reducing the risk of security exploits.
I'll be the one to create the PR to add the scorecard GitHub action, and
I will also work with you to remediate the identified vulnerabilities.
I'll go through each [scorecard
check](https://github.com/ossf/scorecard/blob/main/docs/checks.md ) to
see where the score has dropped and how it can be improved.
Integrate [scorecard](https://github.com/ossf/scorecard ) in CI, and
display a Scorecard badge on the gogf repository
You also need to manually create a project, refer to
https://bestpractices.coreinfrastructure.org/en/projects
Manually create an gogf organization to report results, please see
https://sonarcloud.io/explore/projects?sort=-analysis_date
Signed-off-by: fsl <1171313930@qq.com >
2025-08-29 10:28:29 +08:00
f9ec3b19f7
fix(net/ghttp): wrong in-tag param parse for query param ( #4227 ) ( #4228 )
...
Fixed issue #4227 and add unit test
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-08-29 09:46:48 +08:00
ee24da4e72
refactor: interface{} to any and reflect.Ptr to reflect.Pointer ( #4395 )
...
This pull request standardizes the use of the Go 1.18+ `any` type alias
instead of `interface{}` throughout the codebase. The change improves
code readability and aligns with modern Go best practices. The update
touches many files, including core data structures, code generation
templates, logging utilities, and test data, ensuring consistency across
all usages.
**Type alias migration to `any`:**
* Replaced all instances of `interface{}` with `any` in core data
structures such as `garray` and in generated model structs (e.g.,
`TableUser`, `User1`, `User2`) to modernize type usage.
[[1]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L31-R31)
[[2]](diffhunk://#diff-6c19859cb32c7516ea95ddc8f8235460818eb2f24d2204308e0d9e1b19e7d90fL15-R19)
[[3]](diffhunk://#diff-a15ba2f5e830b4833c47b902515a4f9e5a4f83a3707698f3229b307ec3776b41L15-R18)
[[4]](diffhunk://#diff-52e0837e84d49221d1b810d88fdf78221f36cffcd664fb42f8aba49a79b974dcL15-R19)
[[5]](diffhunk://#diff-11c3457d1a23a4ca6ecd00d6b856289774936b6a708384cf03aff164044e7546L15-R19)
[[6]](diffhunk://#diff-2cff9cf8e6a0cc34087326d8c8149c3bbaf74c76fdbdf5a73daed13cc04249e1L15-R19)
* Updated function signatures, method parameters, and return types from
`interface{}` to `any` in various parts of the codebase, including code
generation, service logic, and logging utilities (e.g., `mlog`).
[[1]](diffhunk://#diff-175edfeea54490b8fe4e18ffcbea5835efaf8f0b8acf623359073987cae7eb76L48-R55)
[[2]](diffhunk://#diff-2b1953fb78cf3593d8c2c7d911e95b65fd0b847c30ed0b4d167d16fe6d781235L54-R74)
[[3]](diffhunk://#diff-e001b7a4b63603b9b14f00de78a4d570bb76c5f57d856a24643f071032e12356L66-R73)
[[4]](diffhunk://#diff-5582954e8a9983988dc8854ad82067fb2ac6269b988e07357ad8db1dfec5f1a0L39-R41)
[[5]](diffhunk://#diff-c5d51d56f487779a2b6207c7ad26c7a20bbadcc846ce094fe60ab4cabff58c51L107-R107)
[[6]](diffhunk://#diff-f96e6a9fdb416eb1804ceaba1fe0ac637bff22c43837f8bb849c2366ce72d4a1L116-R121)
[[7]](diffhunk://#diff-f94c83a1b08ae060d9346f4a6031fc4a7b9a0b894e02d9afaa09018b6598eac0L112-R112)
[[8]](diffhunk://#diff-748b11dbe8828dd4c040ec23cae0b8fe57ecf0a2d1b7694ea39102294e633c64L36-R36)
[[9]](diffhunk://#diff-748b11dbe8828dd4c040ec23cae0b8fe57ecf0a2d1b7694ea39102294e633c64L74-R74)
[[10]](diffhunk://#diff-748b11dbe8828dd4c040ec23cae0b8fe57ecf0a2d1b7694ea39102294e633c64L96-R96)
**Generated code and templates:**
* Adjusted generated files and code generation templates to output `any`
instead of `interface{}` for relevant struct fields and function
signatures, ensuring that new code generation aligns with the updated
convention.
[[1]](diffhunk://#diff-6c19859cb32c7516ea95ddc8f8235460818eb2f24d2204308e0d9e1b19e7d90fL15-R19)
[[2]](diffhunk://#diff-a15ba2f5e830b4833c47b902515a4f9e5a4f83a3707698f3229b307ec3776b41L15-R18)
[[3]](diffhunk://#diff-52e0837e84d49221d1b810d88fdf78221f36cffcd664fb42f8aba49a79b974dcL15-R19)
[[4]](diffhunk://#diff-11c3457d1a23a4ca6ecd00d6b856289774936b6a708384cf03aff164044e7546L15-R19)
[[5]](diffhunk://#diff-2cff9cf8e6a0cc34087326d8c8149c3bbaf74c76fdbdf5a73daed13cc04249e1L15-R19)
[[6]](diffhunk://#diff-175edfeea54490b8fe4e18ffcbea5835efaf8f0b8acf623359073987cae7eb76L48-R55)
[[7]](diffhunk://#diff-e001b7a4b63603b9b14f00de78a4d570bb76c5f57d856a24643f071032e12356L66-R73)
[[8]](diffhunk://#diff-5582954e8a9983988dc8854ad82067fb2ac6269b988e07357ad8db1dfec5f1a0L39-R41)
**Container and utility updates:**
* Refactored the `garray` container implementation and related
constructors/methods to use `[]any` instead of `[]interface{}`, along
with corresponding function signatures.
[[1]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L31-R31)
[[2]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L52-R52)
[[3]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L62-R62)
[[4]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L73-R86)
[[5]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L96-R97)
[[6]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L107-R114)
[[7]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L124-R124)
[[8]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L135-R143)
[[9]](diffhunk://#diff-3a1259e160a4dfa5fe49dfe739fbdb986c0d0a2220a709882ea48d3ae1b8f911L167-R167)
These changes collectively modernize the codebase and prepare it for
future Go developments by using the idiomatic `any` type.
2025-08-28 16:53:19 +08:00
26f20787ba
perf(net/gclient): optimize default http.Transport connection pool configuration ( #4390 )
2025-08-28 15:08:25 +08:00
1371b3bad5
fix: revert #4388 ( #4392 )
2025-08-28 13:00:08 +08:00
1da73451b9
fix: spacing in min value validation message ( #4388 )
...
Fix spacing in min value validation message
2025-08-27 19:05:55 +08:00
94b623e126
fix: update dependencies to version v2.9.1 for various contrib modules and drivers ( #4386 )
...
Fixes #4385
2025-08-27 12:21:38 +08:00
4262aa254d
chore(deps): Update dependent versions to enhance compatibility and security ( #4380 )
...
#4344
---------
Co-authored-by: houseme <housemecn@gmail.com >
2025-08-23 14:53:49 +08:00
8cff64915b
fix(tracing): set database span kind to client ( #4334 )
...
In [OpenTelemetry
spec](https://opentelemetry.io/docs/specs/semconv/database/database-spans/ ),
the span kind of database should be `client`.
2025-08-22 22:49:13 +08:00
bec98e8de0
fix(database/gdb): clickhouse can not support int128/int256/uint128/uint256 ( #4370 )
...
When use clickhouse and use field type int128/int256/uint128/uint256. It
can not work well and it will return 0 value.
Add the new field types to let it work well.
By the way, the data struct field need be set to big.Int when use the
types.
2025-08-22 22:05:15 +08:00
a6dbf4b7eb
feat: upgrade workflow checkout version v5 ( #4381 )
...
feat: upgrade workflow checkout version v5
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-22 21:58:00 +08:00
0c2f60468b
chore(deps): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.12.1 in /contrib/nosql/redis ( #4215 )
...
Bumps [github.com/redis/go-redis/v9](https://github.com/redis/go-redis )
from 9.7.0 to 9.7.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/redis/go-redis/releases ">github.com/redis/go-redis/v9's
releases</a>.</em></p>
<blockquote>
<h2>v9.7.3</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: handle network error on SETINFO (<a
href="https://redirect.github.com/redis/go-redis/issues/3295 ">#3295</a>)
(<a
href="https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7 ">CVE-2025-29923</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/redis/go-redis/compare/v9.7.1...v9.7.3 ">https://github.com/redis/go-redis/compare/v9.7.1...v9.7.3 </a></p>
<h2>v9.7.1</h2>
<h1>Changes</h1>
<ul>
<li>Recognize byte slice for key argument in cluster client hash slot
computation (<a
href="https://redirect.github.com/redis/go-redis/issues/3049 ">#3049</a>)</li>
<li>fix(search&aggregate):fix error overwrite and typo <a
href="https://redirect.github.com/redis/go-redis/issues/3220 ">#3220</a>
(<a
href="https://redirect.github.com/redis/go-redis/issues/3224 ">#3224</a>)</li>
<li>fix: linter configuration (<a
href="https://redirect.github.com/redis/go-redis/issues/3279 ">#3279</a>)</li>
<li>fix(search): if ft.aggregate use limit when limitoffset is zero (<a
href="https://redirect.github.com/redis/go-redis/issues/3275 ">#3275</a>)</li>
<li>Reinstate read-only lock on hooks access in dialHook to fix data
race (<a
href="https://redirect.github.com/redis/go-redis/issues/3225 ">#3225</a>)</li>
<li>fix: flaky ClientKillByFilter test (<a
href="https://redirect.github.com/redis/go-redis/issues/3268 ">#3268</a>)</li>
<li>chore: fix some comments (<a
href="https://redirect.github.com/redis/go-redis/issues/3226 ">#3226</a>)</li>
<li>fix(aggregate, search): ft.aggregate bugfixes (<a
href="https://redirect.github.com/redis/go-redis/issues/3263 ">#3263</a>)</li>
<li>fix: add unstableresp3 to cluster client (<a
href="https://redirect.github.com/redis/go-redis/issues/3266 ">#3266</a>)</li>
<li>Fix race condition in clusterNodes.Addrs() (<a
href="https://redirect.github.com/redis/go-redis/issues/3219 ">#3219</a>)</li>
<li>SortByWithCount FTSearchOptions fix (<a
href="https://redirect.github.com/redis/go-redis/issues/3201 ">#3201</a>)</li>
<li>Eliminate redundant dial mutex causing unbounded connection queue
contention (<a
href="https://redirect.github.com/redis/go-redis/issues/3088 ">#3088</a>)</li>
<li>Add guidance on unstable RESP3 support for RediSearch commands to
README (<a
href="https://redirect.github.com/redis/go-redis/issues/3177 ">#3177</a>)</li>
</ul>
<h2>🚀 New Features</h2>
<ul>
<li>Add guidance on unstable RESP3 support for RediSearch commands to
README (<a
href="https://redirect.github.com/redis/go-redis/issues/3177 ">#3177</a>)</li>
</ul>
<h2>🐛 Bug Fixes</h2>
<ul>
<li>fix(search): if ft.aggregate use limit when limitoffset is zero (<a
href="https://redirect.github.com/redis/go-redis/issues/3275 ">#3275</a>)</li>
<li>fix: add unstableresp3 to cluster client (<a
href="https://redirect.github.com/redis/go-redis/issues/3266 ">#3266</a>)</li>
<li>fix(aggregate, search): ft.aggregate bugfixes (<a
href="https://redirect.github.com/redis/go-redis/issues/3263 ">#3263</a>)</li>
<li>SortByWithCount FTSearchOptions fix (<a
href="https://redirect.github.com/redis/go-redis/issues/3201 ">#3201</a>)</li>
<li>Recognize byte slice for key argument in cluster client hash slot
computation (<a
href="https://redirect.github.com/redis/go-redis/issues/3049 ">#3049</a>)</li>
</ul>
<h2>Contributors</h2>
<p>We'd like to thank all the contributors who worked on this
release!</p>
<p><a
href="https://github.com/ofekshenawa "><code>@ofekshenawa</code></a>, <a
href="https://github.com/Cgol9 "><code>@Cgol9</code></a>, <a
href="https://github.com/LINKIWI "><code>@LINKIWI</code></a>, <a
href="https://github.com/shawnwgit "><code>@shawnwgit</code></a>, <a
href="https://github.com/zhuhaicity "><code>@zhuhaicity</code></a>, <a
href="https://github.com/bitsark "><code>@bitsark</code></a>, <a
href="https://github.com/vladvildanov "><code>@vladvildanov</code></a>,
<a href="https://github.com/ndyakov "><code>@ndyakov</code></a></p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/redis/go-redis/compare/v9.7.0...v9.7.1 ">https://github.com/redis/go-redis/compare/v9.7.0...v9.7.1 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a29d91d9ca "><code>a29d91d</code></a>
release 9.7.3, retract 9.7.2 (<a
href="https://redirect.github.com/redis/go-redis/issues/3314 ">#3314</a>)</li>
<li><a
href="ce3034c7b3 "><code>ce3034c</code></a>
bump version to 9.7.2</li>
<li><a
href="0af2b32f93 "><code>0af2b32</code></a>
fix: handle network error on SETINFO (<a
href="https://redirect.github.com/redis/go-redis/issues/3295 ">#3295</a>)
(CVE-2025-29923)</li>
<li><a
href="3d041a1dd6 "><code>3d041a1</code></a>
release: 9.7.1 patch (<a
href="https://redirect.github.com/redis/go-redis/issues/3278 ">#3278</a>)</li>
<li>See full diff in <a
href="https://github.com/redis/go-redis/compare/v9.7.0...v9.7.3 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/gogf/gf/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-22 17:11:09 +08:00
656ae070da
fix(cmd/gf): fix gen sharding dao in multiple shardingPattern tables … ( #4379 )
...
fix #4378
fix #4330
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-22 16:46:23 +08:00
2d5fcd73cb
chore: upgrade dependencies to latest versions and fix security vulne… ( #4237 )
...
This PR includes the following updates and fixes:
- **Dependency upgrades**: Updated all dependencies in `go.mod` to their
latest versions to ensure compatibility and leverage the latest features
and fixes.
- **Security fixes**:
- Resolved known vulnerabilities in `golang.org/x/net` by upgrading to
the latest secure version.
- Addressed security issues in `golang.org/x/crypto` by upgrading to the
latest secure version.
These changes improve the overall security and stability of the project.
Please review the changes and ensure compatibility with the updated
dependencies.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-08-22 15:29:16 +08:00
82043856f4
chore(polaris): Bump github.com/polarismesh/polaris-go from v1.5.8 to v1.6.1 ( #4241 )
...
- Updated `github.com/polarismesh/polaris-go` dependency to v1.6.1 in
`go.mod`.
- Ensured compatibility with the latest changes in the Polaris Go SDK.
- Verified that all related functionality works as expected after the
upgrade.
- Resolved any potential breaking changes introduced in the new version.
This upgrade includes performance improvements, bug fixes, and new
features provided by the Polaris Go SDK.
2025-08-22 15:07:34 +08:00
7ffdff37e4
chore: upgrade golangci-lint configuration and optimize codebase ( #4236 )
...
This PR includes the following changes:
- **Upgrade `.golangci.yml`**: Updated the configuration file to align
with the latest golangci-lint version, ensuring compatibility and
leveraging new features.
- **Refactor GitHub Action workflow**: Modified `golangci-lint.yml` in
the GitHub Actions workflow to reflect the updated configuration and
improve CI performance.
- **Codebase optimization**: Refactored code to address issues and
warnings raised by the updated golangci-lint rules, including:
- Improved function length and complexity.
- Enhanced error handling and variable naming conventions.
- Fixed minor issues such as unused imports and formatting
inconsistencies.
These changes aim to maintain code quality, ensure compatibility with
the latest tools, and improve overall maintainability.
2025-08-22 13:29:09 +08:00
24083b865d
fix(internal/utils): fix +.1 is pass checks numeric ( #4374 )
2025-08-21 15:44:26 +08:00
8cb64c9f88
fix(cmd/gf): "unknown time zone" when using "gf gen dao" for clickhouse on windows platform ( #4368 )
...
fix bug: could not load time location: "unknown time zone Asia/Shanghai"
The bug will appear when I use gf in windows to do "gf gen dao" for
clickhouse.
2025-08-15 13:35:59 +08:00
5fa656d1cc
fix(os/gtime): add handling for nil time pointers to avoid causing panic ( #4323 )
...
from https://github.com/gogf/gf/pull/4322
Fixes https://github.com/gogf/gf/issues/4307
2025-06-24 15:53:47 +08:00
09ec90746a
chore: bump golang.org/x/tools to v0.34.0 for Go 1.25 compatibility ( #4313 )
...
chore: bump golang.org/x/tools to v0.34.0 for Go 1.25 compatibility
```
# golang.org/x/tools/internal/tokeninternal
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/golang.org/x/tools@v0.21 .1-0.20240508182429-e35e4ccd0d2d/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)
```
relates to https://github.com/Homebrew/homebrew-core/pull/226636
2025-06-20 21:21:03 +08:00
c0d1e44526
fix(database/gdb): support multiple order fields in gdb_model_with and merged #4272 fix scanning functionality for deep slice types ( #4320 )
...
Fix:#4311
Merged: #4272
2025-06-20 21:09:41 +08:00
b323862b4c
Merge pull request #1 from fainc/master
...
Update util/gconv/gconv_z_unit_scan_test.go
2025-06-20 19:23:04 +08:00
3d9cdb8997
fix(gdb): support multiple order fields in "with"
2025-06-20 19:11:01 +08:00
7180d895ea
Update util/gconv/gconv_z_unit_scan_test.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-20 18:17:40 +08:00
afb1595fbe
Merge branch 'gogf:master' into master
2025-06-20 18:07:15 +08:00
6637add9ca
fix(net/ghttp): improve GetMetaTag method to handle nil and type checks ( #4284 )
...
修复没有做handler参数数量判断导致可能出现的数组越界问题
2025-06-19 09:43:24 +08:00
bc862cf97b
chore: bump golang.org/x/tools to v0.34.0 for Go 1.25 compatibility
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
2025-06-14 13:34:25 -04:00
9033ca087b
fix(net/ghttp): improve GetMetaTag method to handle nil and type checks
2025-05-16 17:55:00 +08:00
b985fd978c
Merge branch 'master' into master
2025-05-07 20:02:12 +08:00
88c4471500
fix(ci): change base image from expired ubuntu-22.04 to ubuntu-latest ( #4273 )
2025-05-07 19:06:00 +08:00
b73e2047db
fix(gconv): fix scanning functionality for deep slice types
2025-05-06 13:37:45 +08:00
1534abdb05
feat(util/gpage): marked deprecated ( #4230 )
2025-04-02 19:56:28 +08:00
fee38b4531
feat(net/ghttp): enhance GetHeader method to support default values ( #4210 )
2025-03-25 20:42:30 +08:00
69e3362d0d
feat: new version v2.9.0 ( #4204 )
2025-03-17 15:52:26 +08:00
9a61a6970f
fix(database/gdb): fix transaction propagation feature ( #4199 )
2025-03-17 14:50:07 +08:00
abf77fac50
fix(cmd/gf): invalid binary suffix after installing binary using custom renamed file name that has suffix with . character ( #4207 )
2025-03-17 13:48:54 +08:00
07696fc779
feat(net/ghttp): add GetMetaTag function to retrieve metadata value for HandlerItem ( #4206 )
2025-03-17 09:21:00 +08:00
bc1e1019c5
refract(util/gconv): change Converter interface definition for more convenient usage ( #4202 )
2025-03-14 18:23:07 +08:00
bb696bb281
refract(net/ghttp): move Request.GetMetaTag to HandlerItemParsed.GetMetaTag ( #4191 )
2025-03-12 21:55:35 +08:00
029f324c5c
feat: version v2.9.0-beta ( #4189 )
2025-03-09 22:31:20 +08:00
f8331bad6e
feat(net/ghttp): add Request.GetMetaTag to retrieve specific meta tag value ( #4185 )
2025-03-09 11:17:41 +08:00
bcda48bf82
fix(net/ghttp):check parameter existence to determine using default or front-end value. ( #4182 )
2025-03-08 20:56:27 +08:00
a8a055f122
fix(util/gvalid): lots of memory consumed when required validation on big binary field ( #4097 )
2025-03-07 13:52:12 +08:00
dfe088f5cd
refactor(util/gconv): add Converter feature for more flexable and extensible type converting ( #4107 )
2025-03-06 23:04:26 +08:00
f4074cd815
fix(net/gclient): remove default discovery for gclient when Discovery feature enabled ( #4174 )
2025-03-03 16:43:21 +08:00
4a65e7a629
feat: v2.9.0 ( #4057 )
2025-02-27 15:53:19 +08:00
ac653d3dee
Merge branch 'master' into feat/v2.9.0
2025-02-27 14:36:05 +08:00
2d3ab4f9fb
feat: add submodule examples ( #4137 )
2025-02-27 14:35:00 +08:00
bda42d18ee
feat(cmd/gf): add controller comment support for command gf gen ctrl ( #4169 )
2025-02-27 14:21:40 +08:00
63cb3285f8
fix(net/ghttp): update response message handling in MiddlewareHandlerResponse ( #4162 )
2025-02-27 11:59:26 +08:00
2fa03556ef
chore(util/gvalid): using 64 instead of 10 bitsize parameter for function strconv.ParseFloat although it treats 10 as 64 internally ( #4154 )
2025-02-20 16:32:01 +08:00
01593ad8b6
fix(ci): golangci-lint failed after upgrading go version to 1.24 ( #4158 )
2025-02-14 22:24:18 +08:00
42d8845d35
feat(cmd/gf): add gopackage option for command gf gen pbentity to specify go_package for generated proto files ( #4141 )
2025-02-14 13:39:13 +08:00
1ef1c442d3
test(os/gproc): add unit test for os/gproc ( #4140 )
2025-02-14 13:36:17 +08:00
7d3b055d3e
fix(net/ghttp): MakeBodyRepeatableRead takes not effective when called after ParseForm ( #4143 )
2025-02-11 18:02:26 +08:00
a3b3c656d9
feat(database/gdb): enable transaction propagation when using tx.GetCtx() after Begin ( #4121 )
2025-02-11 16:09:27 +08:00
0eb229a887
feat(os/glog): add default time format 2006-01-02T15:04:05.000Z07:00 ( #4134 )
2025-02-11 15:59:27 +08:00
20b1987828
feat(test/gtest): add map type support for AssertNI/AssertIN ( #4135 )
2025-01-23 17:58:32 +08:00
e12768207e
feat(cmd/gf): beautify progress bar of cli binary downloading for command gf up ( #4094 )
2025-01-22 19:22:36 +08:00
f9c7eae23b
fix(net/ghttp): remove unused code snippet ( #4131 )
2025-01-22 19:22:02 +08:00
1f8845291a
fix(contrib/config/polaris): it only supports json format for configuration contents, add more content formats support ( #4126 )
2025-01-22 19:20:21 +08:00
6bd15b0796
merge master
2025-01-22 19:17:16 +08:00
99f0fb14a1
fix(net/ghttp): BufferWriter.Flush writes additional information after custom response wrote ( #4116 )
2025-01-22 09:28:06 +08:00
e0f734851e
fix(net/ghttp): MiddlewareHandlerResponse writes additional information after custom response wrote ( #4109 )
2025-01-14 09:28:19 +08:00
3f24b4da2e
feat(os/gcmd): add default value display for an argument ( #4083 )
2025-01-13 09:26:59 +08:00
fc9093a1aa
feat(cmd/gf): add ShardingPattern option for command gf gen dao to support generating dao files sharding tables ( #4081 )
2024-12-26 23:21:03 +08:00
f66e09717c
feat(contrib/metric/otelmetric): add metrics option WithExemplarFilter support ( #4061 )
2024-12-26 18:30:21 +08:00
80f57d1c24
fix(database/gdb): gdb.Counter not work in OnDuplicate ( #4073 )
2024-12-26 18:18:35 +08:00
9ce2409659
fix(util/gpage): html.EscapeString for pagination HTML generation and URL parsing ( #4079 )
2024-12-26 16:21:30 +08:00
6ea1526b75
fix(ci/golangci): fix golangcl-lint git push and apply format code on Push ( #4077 )
2024-12-26 10:19:01 +08:00
89e5285d95
feat(net/ghttp): move plugin remove logic to Shutdown() && call Shutdown() when Run() exits ( #4072 )
2024-12-26 10:18:47 +08:00
e6bee78be4
Apply gci import order changes
2024-12-26 02:18:19 +00:00
96e833db6e
feat(gf/gen/pbentity): add a TablesEx configuration to exclude the specified table names ( #4060 )
2024-12-26 10:17:51 +08:00
3a19ee9268
fix: securiry update CVE-2024-45338 for package golang.org/x/net ( #4070 )
2024-12-25 21:43:55 +08:00
594979c5af
fix(net/ghttp): nil pointer panic error when server logger set nil ( #4055 )
2024-12-19 22:31:17 +08:00
4c2a78b7bf
fix(database/gdb): regular expression pattern for link configuration to be compitable with tidbcloud ( #4064 )
2024-12-19 21:44:36 +08:00
817ac36ce2
ci: use latest go version for unit testing cases of contribution components ( #4062 )
2024-12-19 10:11:55 +08:00
2c1fcec88c
Merge branch 'feat/v2.9.0' of github.com:gogf/gf into feat/v2.9.0
2024-12-18 20:48:05 +08:00
92eab81926
fix(database/gdb): add compatibility for old configiration with both Type and part of Link configurations ( #4058 )
2024-12-18 15:54:27 +08:00
a5c8b966e2
feat(util/gconv): add basic types conversion support for function Scan ( #3991 )
2024-12-18 10:41:09 +08:00
233295be07
fix(os/gview): search file faild from resource manager of package gres ( #4024 )
2024-12-18 10:39:01 +08:00
67a9db9e3e
perf(contrib/drivers/pgsql): improve conversion performace for slice string ( #4046 )
2024-12-17 21:45:38 +08:00
e7fdf82dd8
test(net/gipv4): add unit tests ( #4052 )
2024-12-17 21:17:27 +08:00
f79aef6669
fix(database/gdb): fix context canceled error in transaction due to usage of TransTimeout configuration ( #4037 )
2024-12-17 21:15:54 +08:00
0c2d5cac19
feat: new version v2.8.3 ( #4048 )
2024-12-17 09:24:13 +08:00
5104f01b69
chore: update FUNDING.yml ( #4049 )
2024-12-17 09:23:59 +08:00
a09454accf
feat(contrib/drivers/mssql): enable unit testing ( #4043 )
2024-12-16 11:17:47 +08:00
ac53170884
feat(contrib/registry/etcd): add retry machenism when keepalive lease expires ( #4035 )
2024-12-13 11:09:07 +08:00
e3e82c7351
feat(contrib/config/nacos): add OnChange callbacks configuration support ( #4038 )
2024-12-13 09:57:28 +08:00
ced4b57991
fix(contrib/drivers/pgsql): incompatible placeholder replacement with old version ( #4036 )
2024-12-13 09:29:34 +08:00
5af342adc3
fix(net/ghttp): json omitempty takes no effect in BuildParams, which is not compatible with old version ( #4041 )
2024-12-13 09:29:19 +08:00
5c45d3533f
fix(ci/golangci): fix golangcl-lint git push ( #4032 )
2024-12-11 15:42:36 +08:00
d748fb6564
fix(contrib/registry/consul): update dependence of gf to v2.8.2 with relative path specified ( #4029 )
2024-12-11 10:28:29 +08:00
00e2f6b5dc
chore: improve golangci-lint.yml, upgrade dependencies, and optimize code and comments ( #4025 )
2024-12-11 10:14:12 +08:00
b7c74c9a35
fix(contrib/drivers/pgsql): add unix socket connection support ( #4028 )
2024-12-11 09:58:26 +08:00
69969b1723
fix(contrib/registry/etcd): remove default configuration of AutoSyncInterval ( #4027 )
2024-12-10 20:59:44 +08:00
38bffc77e2
fix(net/ghttp): occasional ci failed by unit testing cases using gctp.GetFreePort ( #3982 )
2024-12-10 09:52:48 +08:00
2e788be1d3
feat(contrib/registry/consul): add consul registry support ( #4016 )
2024-12-09 23:12:29 +08:00
13bc192e36
feat(database/gdb): add sharding feature for schema and table ( #4014 )
2024-12-09 23:12:20 +08:00
bae78fbf5b
feat(net/ghttp): add middleware MiddlewareGzip for compressing response content using gzip ( #4008 )
2024-12-09 23:12:09 +08:00
80e73da416
feat(errors/gerror): add As support ( #4002 )
2024-12-09 23:11:56 +08:00
5e47590165
feat(database/gdb): add WhereExists/WhereNotExists ( #4015 )
2024-12-09 09:24:48 +08:00
3cffa4d5d6
fix(database/gdb): CRUD typos ( #4017 )
2024-12-09 09:22:52 +08:00
e18331aa2c
docs(cmd/gen): improve comments for command gen dao ( #4007 )
2024-12-07 14:19:36 +08:00
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
2066aa4803
feat(database/gdb): add transaction propagation&isolation level&readonly features ( #4013 )
2024-12-07 14:01:31 +08:00
b8142bf1fc
feat(os/gsession): add RegenerateId/MustRegenerateId support ( #4012 )
2024-12-06 14:16:03 +08:00
ba968949f7
fix(database/gdb): orm tag from embedded struct is missing in with feature ( #4011 )
2024-12-05 22:02:47 +08:00
c9b0237fc7
feat: version v2.8.2 ( #4009 )
2024-12-05 20:21:19 +08:00
4ad061faff
feat(contrib/drivers/pgsql): add array type varchar[] and text[] converting to Go []string support ( #4000 )
2024-12-05 15:50:59 +08:00
5fa33411fc
chore: add example for openapi/swagger authentication ( #4004 )
2024-12-05 15:49:50 +08:00
c0f2ef7348
feat(gctx): rename and remove gctx functions to prevent ambiguity ( #3892 )
2024-12-05 14:47:39 +08:00
77cb7fb412
test(drivers/mssql): add unit testing cases of transaction ( #3818 )
2024-12-05 14:44:40 +08:00
7cd672d22c
feat(cmd/gf): add interface functions generating for embedded struct of logic struct in command gen service ( #3802 )
2024-12-05 14:44:21 +08:00
e2cafa35e0
fix(cmd/gf): custom tags repeatedly added using command gf gen pb with -a option ( #3966 )
2024-12-05 14:42:30 +08:00
532e665841
fix(database/gdb): move Raw parameter from args to sql statement before committed to db driver ( #3997 )
2024-12-03 15:24:49 +08:00
2d0cd7b770
refactor(cmd/gf): change default src value to api, path to internal/packed/packed_enums.go for command gen enums ( #3996 )
2024-12-02 21:39:04 +08:00
2c916f8222
fix(database/gdb): issue where the Count/Value/Array query logic was incompatible with the old version when users extended the returned result fields using the Select Hook ( #3995 )
2024-12-01 23:47:51 +08:00
42eae41599
fix(util/gutil): code scanning alert no. 17: Potentially unsafe quoting ( #3993 )
2024-12-01 23:44:48 +08:00
5aa7504bb2
fix(util/gpage): code scanning alert no. 9: Potentially unsafe quoting ( #3992 )
2024-12-01 23:43:44 +08:00
ec6e091882
chore: fix some function names in comment ( #3967 )
2024-12-01 11:29:09 +08:00
c1850d4ab5
feat(net/goai): support OpenAPIv3.1 in description field for schema object ( #3978 )
2024-12-01 11:27:35 +08:00
9923975b1c
feat(net/gipv4): add enhanced the conversion between uint32 and string ( #3988 )
2024-12-01 10:16:03 +08:00
e572ed01b3
fix(net/ghttp): get origin through referer ( #3990 )
2024-12-01 10:05:46 +08:00
16d73b5bdf
fix(utils/gvalid): missing pkg path for enums pointer ( #3983 )
2024-11-29 18:25:13 +08:00
5521d768ff
feat(cmd/gf): add typeMapping and fieldMapping feature support for command gf gen genpbentity ( #3970 )
2024-11-27 21:09:42 +08:00
81aed06643
feat: README updates ( #3974 )
2024-11-27 21:03:31 +08:00
455830b842
test(database/gdb): add more unit testing cases for Raw feature ( #3962 )
2024-11-23 18:35:02 +08:00
e56371e7c9
fix(cmd/gf): incorrect environment variables printing before cli does some environment changes ( #3961 )
2024-11-23 17:54:20 +08:00
eb8024913d
feat(net/goai): add min, max, length, min-length, max-length and between support for OpenAPIv3 ( #3914 )
2024-11-23 15:38:52 +08:00
ee3eb8d48c
fix(net/goai): embedded struct with tags also expand as properties of the parent struct ( #3956 )
2024-11-23 15:38:14 +08:00
15f94975db
feat(net/goai): add enhanced response status interface ( #3896 )
2024-11-23 15:37:46 +08:00
3797d0eee4
feat: new version v2.8.1 ( #3950 )
2024-11-21 20:51:46 +08:00
e9ce1bde87
fix(database/gdb): incompatitable statement like Order("id", "dasc") ( #3949 )
2024-11-21 15:08:29 +08:00
9c8b21af7b
fix(cmd/gf): incorrect make command in project template ( #3946 )
2024-11-20 21:47:32 +08:00
90851881cc
fix(registry/zookeeper): watch service name path error with extra suffix - ( #3948 )
2024-11-20 20:39:05 +08:00
3090fe7f4e
fix(database/gdb): recognize tinyint(1)/int(1) as bool ( #3943 )
2024-11-20 20:21:33 +08:00
0d1aed0741
fix(os/gcache): function Remove returns value not *gvar.Var as previous version ( #3936 )
2024-11-19 23:30:29 +08:00
910703ec3a
chore(database/gdb): comment update for function Model.Order ( #3933 )
2024-11-18 18:33:59 +08:00
ec6c537def
feat(cmd/gf): project template updates for command gf init ( #3928 )
2024-11-17 10:57:17 +08:00
bcfcda793c
chore(errors/gerror): add examples ( #3927 )
2024-11-16 18:14:40 +08:00
138dea0f3a
feat(cmd/gf): change document source from repo gf to gf-site ( #3926 )
2024-11-15 14:33:23 +08:00
3d4904eb3d
feat(net/ghttp): remove Req/Res suffix limitation for input/output parameters of strict router handler ( #3848 )
2024-11-14 17:58:39 +08:00
955a76cf35
feat: new version v2.8.0 ( #3924 )
2024-11-14 13:26:23 +08:00
ffa6081471
fix(util/gconv): fix missing minus in string to int64 conversion ( #3920 )
2024-11-13 23:25:24 +08:00
6baf4338b0
fix(database/gdb): recognize field type tinyint(1) to golang type bool ( #3921 )
2024-11-13 23:09:01 +08:00
8c6db247b2
chore: readme updates ( #3919 )
2024-11-13 20:48:02 +08:00
fff2f8a24c
build: downgrade fsnotify from v1.8.0 to v1.7.0 to solve data race error ( #3916 )
2024-11-13 12:22:23 +08:00
475e8bbae0
chore: README.md updates ( #3912 )
2024-11-12 21:30:46 +08:00
070efecc6e
style(gtest/test): improve code ( #3891 )
2024-11-12 20:20:13 +08:00
a63af5d5f8
build: upgrade fsnotify from v1.7.0 to v1.8.0 to solve occasional ci failure ( #3910 )
2024-11-12 10:25:39 +08:00
bd2e8408e8
chore: update README.MD ( #3911 )
2024-11-12 09:25:37 +08:00
6c6fd7902a
feat(database/gdb): remove unnecessary blank character requirement in tag for With feature of gdb.Model ( #3875 )
2024-11-11 21:59:26 +08:00
1b7b536d6c
fix(cmd/gf): protoc file comments contain backticks and double quotes, resulting in syntax errors in the generated file of go ( #3890 )
2024-11-11 21:37:30 +08:00
9cc1cf1b53
fix(cmd/gf): remove dir after process done if given build file parameter is not a file but a dir name ( #3908 )
2024-11-11 21:32:58 +08:00
76948d93d6
test(drivers/mysql): use asserts function to replace if statement ( #3849 )
2024-11-11 20:54:57 +08:00
5ba165a3c0
fix(cmd/gf): go back current working directory after gf gen pb ( #3895 )
2024-11-11 20:42:25 +08:00
f4db846633
fix(contrib/drivers/pgsql): connection fails when postgres database password is empty ( #3900 )
2024-11-11 20:27:07 +08:00
e7cc2c3d9c
chore: update the contributors in README.MD ( #3907 )
2024-11-06 22:11:23 +08:00
01cd0103e4
fix(net/gclient): Client Clone with allocated header/cookie ( #3902 )
2024-11-06 22:09:28 +08:00
d1872f17f7
fix(util/gconv): assigned the same value to struct field and its same name field in embedded struct failed ( #3905 )
2024-11-06 21:12:01 +08:00
e4c4fb591e
feat(database/gdb): add Exist support for checking records existance for certain condition ( #3854 )
2024-10-24 15:29:03 +08:00
656668f444
feat: new version v2.8.0-beta ( #3878 )
2024-10-24 14:51:03 +08:00
555bb3fa6b
feat(net/goai): enhance openapi doc with responses and examples ( #3859 )
2024-10-21 21:16:45 +08:00
e179e1d4fe
fix(database/gdb): unix socket connection support for mysql ( #3872 )
2024-10-21 09:22:53 +08:00
7dd38a1700
feat(database/gdb): add Raw support for Fields function of gdb.Model ( #3873 )
2024-10-21 09:22:31 +08:00
b1d875a31f
fix(util/gconv): incorrect fuzzy converting logic ( #3874 )
2024-10-21 09:16:50 +08:00
c18339b1a9
feat(contrib/drivers/pgsql): add InsertIgnore support ( #3855 )
2024-10-16 07:32:33 +08:00
5288b70567
fix(util/gconv): one parameter to same tag in multiple struct attributes mapping failed ( #3822 )
2024-10-14 21:34:39 +08:00
4b5f637651
feat(trace): add trace for Custom trace client and provider ( #3847 )
2024-10-14 21:30:27 +08:00
e3e5c89ba7
fix(os/gcmd): cannot retrieve all args if no subcommand defined for a root command ( #3850 )
2024-10-10 09:17:34 +08:00
4d29939f87
fix(net/goai): cannot customize OpenAPIv3 type for request parameters ( #3845 )
2024-10-09 13:15:46 +08:00
ae3ae8b177
test(cmd/gf): add unit testing case generating dao/do/entity files for sqlite in command gen dao ( #3808 )
2024-10-08 22:06:07 +08:00
7a6889817f
feat(encoding/ghtml): add parameter validation for function SpecialCharsMapOrStruct ( #3841 )
2024-10-08 20:46:06 +08:00
a72a9ff13e
fix(container/gtree): deadlock in Map/MapStrAny functions, comments update ( #3840 )
2024-10-08 20:45:23 +08:00
91884e7c93
fix(database/gdb): remove support of Array/Value/Count operations for result that has multiple record fields ( #3839 )
2024-10-08 20:42:06 +08:00
7cbc9e8533
test(os/gcache): fix unit testing occasionally failed due to too short expration duration set ( #3842 )
2024-10-08 13:06:11 +08:00
2301de6e8c
fix(util/gutil): invalid empty parameter value check for function GetOrDefaultAny ( #3844 )
2024-10-08 13:05:59 +08:00
183395f0a0
fix(cmd/gf): gen service error when there's version number at the end of package import path ( #3836 )
2024-10-05 12:25:43 +08:00
d4fa2c82bf
feat(contrib/rpc/grpcx): use grpc.NewClient instead of grpc.Dial ( #3684 )
2024-09-30 20:41:14 +08:00
459c8ce84e
feat(os/gfsnotify): add recursive watching for created subfolders and sub-files under folders that already watched ( #3830 )
2024-09-30 11:24:27 +08:00
38622f966f
refactor(contrib/trace/jaeger): remove trace jaeger, please use the OpenTelemetry SDKs(otlphttp&otlpgrpc) ( #3825 )
2024-09-29 20:31:16 +08:00
499f755d3a
build(deps): bump google.golang.org/grpc from 1.51.0 to 1.56.3 in /contrib/config/polaris ( #3831 )
2024-09-29 17:06:02 +08:00
3f1439ac4c
build(deps): bump google.golang.org/grpc from 1.51.0 to 1.56.3 in /contrib/registry/polaris ( #3828 )
2024-09-29 15:48:28 +08:00
0ca2ed5979
chore(contrib/config/polaris): upgrade dependent polaris library version to v1.5.8 and go version to v1.21 ( #3827 )
2024-09-29 11:08:07 +08:00
ee5284a1b2
chore(contrib/registry/polaris): upgrade dependent polaris library version to v1.5.8 and go version v1.21 ( #3826 )
2024-09-29 10:59:48 +08:00
8e7f1180c4
fix(contrib/drivers/mssql): fix mssql paging sql generate statement error ( #3782 )
2024-09-29 10:18:34 +08:00
3abb9477c4
ci: fix mssql docker service starting failed ( #3824 )
2024-09-28 21:46:23 +08:00
ab3fbddfc7
build(go.mod): upgrade minimum required go version from 1.18 to 1.20 ( #3688 )
2024-09-28 20:58:04 +08:00
55b92151f4
refactor(net/ghttp): enhance ghttp.StartPProfServer ( #3555 )
2024-09-28 18:10:53 +08:00
9589384b36
refactor(encoding/gjson): change data parameter from type any to []byte ( #3542 )
2024-09-28 18:10:00 +08:00
cf742233e8
refactor(net/gudp): improve implements ( #3491 )
2024-09-28 18:08:46 +08:00
1c97b7a982
fix(os/gcache): memory leak for LRU when adding operations more faster than deleting ( #3823 )
2024-09-28 18:07:11 +08:00
ea09457d84
fix(os/gcmd): argument index calculating error in multilevel command ( #3807 )
2024-09-28 18:02:34 +08:00
66ee52c96a
fix(database/gdb): invalid order by statement generated when multiple order inputs ( #3803 )
2024-09-28 12:06:22 +08:00
f45f64897a
fix(cmd/gf): creating logic.go empty folder when there is no correct logic service ( #3815 )
2024-09-28 11:28:06 +08:00
8708dc7940
test(drivers/mysql): loose unit testing for transaction ( #3819 )
2024-09-28 11:19:14 +08:00
79451e4624
fix(net/ghttp&gclient,contrib/rpc/grpcx): remove request and response contents in opentelemetry tracing attributes ( #3810 )
2024-09-26 09:50:07 +08:00
a716c6bfab
feat: new version v2.7.4 ( #3809 )
2024-09-25 19:53:23 +08:00
5aa321dbde
fix(util/gconv): unstable converting when there is an external attribute with the same name as the internal structure ( #3799 )
2024-09-25 19:22:15 +08:00
3f2b1cb329
feat(database/gdb): add year field type support for ORM operations ( #3805 )
2024-09-25 16:33:52 +08:00
ab2c3b02ac
fix(cmd/gf): table and field names converted to its lower case before CamelCase converting in command gen dao ( #3801 )
2024-09-25 10:59:00 +08:00
76783fd72b
fix(net/gclient): panic when containing @file: parameter value in json post request ( #3775 )
2024-09-25 10:37:32 +08:00
a1ce97ec9b
feat(contrib/registry/etcd/): add DialTimeout and AutoSyncInterval option ( #3698 )
2024-09-24 17:01:10 +08:00
c13004e230
fix(database/gdb): support OrderRandom feature in different databases ( #3794 )
2024-09-24 11:58:34 +08:00
9af8393758
fix(net/goai): change default value of RequestBody.Required from true to false, add required tag support for RequestBody ( #3796 )
2024-09-24 11:51:53 +08:00
e15b543a5b
fix(util/gvalid): retrive empty slice parameter in custom validation rule function failed ( #3795 )
2024-09-23 19:59:48 +08:00
8a1c97f518
fix(util/gconv): cached field indexes append issue caused incorrect field converting ( #3790 )
2024-09-23 19:05:32 +08:00
d8e3e9d713
fix(utils/utils_str): recognize '+' as a valid numeric sign ( #3778 )
2024-09-23 16:45:55 +08:00
777c2e7117
ci: fix mssql docker service failed in ci ( #3792 )
2024-09-23 11:50:48 +08:00
c4327f62e7
fix(net/ghttp): server shutdown not graceful using admin api /debug/admin/shutdown ( #3777 )
2024-09-19 14:10:16 +08:00
fd33dcb97b
ci: add go version 1.23 support ( #3733 )
2024-09-19 10:38:20 +08:00
d8b06d056e
fix(os/gcache): a little memory leak for removed timestamp key ( #3779 )
2024-09-14 11:05:47 +08:00
e186eab1a5
fix(debug/gdebug): incorrect package name handling in function CallerPackage ( #3771 )
2024-09-13 16:51:39 +08:00
6a99931798
fix(database/gdb): #3755 error parsing database link without port number ( #3772 )
2024-09-13 16:50:59 +08:00
4ee5bf5c45
fix(database/gdb): #3754 FieldsEx feature conflicts with soft time feature in soft time fields updating ( #3773 )
2024-09-13 16:50:38 +08:00
e4669387b5
fix(encoding/gxml): XML special character encoding error ( #3740 )
2024-09-13 10:37:15 +08:00
0e471eab38
fix(util/gconv): #3764 fix bool converting issue ( #3765 )
2024-09-12 21:59:38 +08:00
3d63ebfe81
fix(net/ghttp): skip common response body in common response handler for streaming content types ( #3762 )
2024-09-12 17:50:43 +08:00
9b318bb57f
perf(database/gdb): performance improvement for struct scanning when with feature disabled ( #3677 )
2024-09-12 15:38:18 +08:00
6b3fb607cf
fix(net/goai): fix openapi miss required tag of BizRequest when set CommonRequest ( #3724 )
2024-09-10 18:00:21 +08:00
bb9a3b83eb
feat(database/gdb): add time field type for value converting for/from field ( #3712 )
2024-09-10 17:51:22 +08:00
baea1c7a7a
feat: version v2.7.3 ( #3763 )
2024-09-09 16:39:02 +08:00
1b4ebc0812
perf(util/gconv): add cache logic to enhance performance ( #3673 )
2024-09-09 16:17:01 +08:00
803cb5a0bc
fix(contrib/drivers/pgsql): fix insert error when data struct field has nil in PgSQL ( #3679 )
2024-09-09 16:16:20 +08:00
448df14860
fix(util/gconv): #3731 map type name mismatch in switch case statement ( #3732 )
2024-09-09 14:54:40 +08:00
467a5c1093
fix(contrib/drivers/pgsql): #3671 fix invalid pgsql insert json type ( #3742 )
2024-09-09 14:32:14 +08:00
26d2a98fb1
refactor(nacos-registry): use official nacos sdk instead of the third-party nacos sdk ( #3745 )
2024-09-09 14:27:21 +08:00
6e5ce98d23
fix(database/gdb): fix #3649 when constructing query param, gdb.Row value not directly write to Buffer ( #3718 )
2024-08-14 21:16:17 +08:00
a6c361dcf7
fix(os/gtime): fix gtime.Value() when time only, add time only example ( #3714 )
2024-08-14 21:00:39 +08:00
dc8bb809a8
fix(contrib/registry/file/v2): fix the panic caused by channel closing after resolver closed ( #3691 )
2024-08-14 20:44:05 +08:00
9143b26182
fix(contrib/nosql/redis): missing err nil check in function ScriptExists ( #3713 )
2024-07-29 20:32:59 +08:00
cd2d51ea30
build: bump google.golang.org/protobuf to v1.33.0 ( #3697 )
2024-07-24 19:27:28 +08:00
144ad5f263
ci: add Scorecard workflow ( #3702 )
2024-07-24 19:24:14 +08:00
4fdafa4517
feat(cmd/gf): project templates update for command gf init ( #3704 )
2024-07-24 19:15:54 +08:00
ba322ba0ac
fix(cmd/gf): fix command gf up with -u option upgrading packages indirectly required would fail with higher version of go required ( #3687 )
2024-07-17 20:21:26 +08:00
559ae0e77e
chore(.github/template): update document for github pull requests ( #3666 )
2024-07-02 20:56:20 +08:00
3e54839aa8
refractor(container/gtree): refactor code with gods package for rbtree ( #3655 )
2024-07-02 20:36:43 +08:00
2565bb3d07
refractor(container/gtree): improve function order of btree ( #3656 )
2024-07-02 20:35:53 +08:00
54423b6d84
refractor(container/gtree): refactor code with gods package for avltree ( #3647 )
2024-07-01 20:37:11 +08:00
c3cfc01cf6
refactor(container/gring): mark deprecated, package container/gring will not be maintained in future ( #3665 )
2024-06-27 21:12:51 +08:00
31a6ae2a19
fix(cmd/gf): remove dm driver for command gen dao as it causes building failed for some platforms ( #3667 )
2024-06-27 21:12:06 +08:00
b11caba5b0
version v2.7.2 ( #3663 )
2024-06-26 10:08:04 +08:00
8824b8b0fe
os/gcron: add graceful shutdown support ( #3625 )
2024-06-25 21:13:51 +08:00
f8272bc5f4
database/gdb: remove duplicated SQL records in tracing events ( #3659 )
2024-06-25 21:11:36 +08:00
e8a2629b19
net/goai: fix : #3660 , support multiple file upload parameters for OpenAPIv3 ( #3662 )
2024-06-25 21:01:58 +08:00
dba6c08548
net/ghttp: fix Content-Type for jsonp response from application/json to application/javascript ( #3651 )
2024-06-24 21:37:49 +08:00
7d464d4de2
net/ghttp: fix args issue for forkRestartProcess in graceful restarting of ghttp.Server ( #3661 )
2024-06-24 20:53:37 +08:00
4abb32e11b
contrib/drivers/pgsql: support slice type to insert into array for pgsql ( #3645 )
2024-06-18 19:36:07 +08:00
74d0945fa1
gerror: fix #3633 Is performs the same as errors.Is from go stdlib ( #3640 )
2024-06-13 21:55:32 +08:00
ffbe9a7197
container/gtree: refactor code with gods package ( #3595 )
2024-06-13 21:26:53 +08:00
fba878f47a
net/ghttp: update error message for duplicated routes registering ( #3603 )
2024-06-13 21:16:11 +08:00
88f188d0f9
cmd/gf: use automatic generating package names for go files of dao/do/entity instead of constant package names ( #3639 )
2024-06-13 21:13:05 +08:00
2ccbb02c71
fix : #3613 ignore automatic handling for creating/updating time if it has been specified ( #3615 )
2024-06-12 21:41:44 +08:00
01408f1a87
cmd/gf: delete binary file when gf run end process ( #3628 )
2024-06-12 21:32:24 +08:00
dea0ffcfb3
cmd/gf: add command gf doc ( #3634 )
2024-06-12 21:29:56 +08:00
d5825ab51c
drivers/pgsql:pgsql returning id should use quotation marks,when primary key is capital ( #3638 )
2024-06-12 21:22:39 +08:00
753965b9a9
example: password encrypt-decrypt for database using custom implement driver ( #3610 )
2024-06-04 22:04:36 +08:00
ee211dbdac
cmd/gf: improve gf gen ctrl using ast ( #3616 )
2024-06-04 21:13:23 +08:00
4d916ae73e
os/gres: fix #3611 add custom prefix / support for resource packing ( #3621 )
2024-06-04 20:38:59 +08:00
59a775aad4
util/gvalid: add 171 number support for virtual phone number validation ( #3622 )
2024-06-04 20:36:28 +08:00
e3a00d7f56
cmd/gf: fix missing configuration file support for cli command pack/run/tpl/up ( #3629 )
2024-06-04 19:59:05 +08:00
bd8d046b83
cmd/gf: add DaMeng database driver support ( #3606 )
2024-05-30 21:20:46 +08:00
57583a98bc
.github/workflows: remove code coverage report for folder example ( #3608 )
2024-05-30 21:05:35 +08:00
f8175e7113
drivers/mssql: change driver from github.com/denisenkom/go-mssqldb to github.com/microsoft/go-mssqldb ( #3612 )
2024-05-30 20:58:51 +08:00
6b84a37794
.github/workflows: fix warning info from node16 on timezone setting ( #3614 )
2024-05-30 20:55:06 +08:00
457f7abcf5
contrib/drivers: add README.zh_CN.MD ( #3604 )
2024-05-27 21:02:02 +08:00
9e9e42b45c
cmd/gf: test gen ctrl comments ( #3575 )
2024-05-27 20:42:26 +08:00
8f4d5f7d74
cmd/gf: refactor gf gen service with AST ( #3488 )
2024-05-27 20:41:05 +08:00
b675d01418
database/gdb: add unscoped tag support for orm struct ( #3464 )
2024-05-22 21:52:21 +08:00
17385eeaef
database/gdb: fix confusing error message in Insert/Update operations when table not exist or the table contains no fields ( #3553 )
2024-05-22 21:26:53 +08:00
23df83cb0b
database/gdb: fix deadlock when orm operations perform in cache function from gcache ( #3585 )
2024-05-22 21:14:43 +08:00
2e471662f4
os/gcfg: fix file searching issue always returning the configuration file of pwd ( #3592 )
2024-05-22 21:14:16 +08:00
1e8f4287af
contrib/registry/zookeeper: fix invalid searching prefix ( #3598 )
2024-05-22 21:12:21 +08:00
21c83670d6
os/gtime: fixed gtime ci fail ( #3596 )
2024-05-22 20:45:39 +08:00
1b23bf495a
container/gmap&gset: fix deadlock when removing values during iterating ( #3572 )
2024-05-21 22:07:28 +08:00
15b60462a2
driver/pgsql: optimize regex for version matching ( #3583 )
2024-05-21 21:51:43 +08:00
1455440efa
os/gcfg: fix gcfg adaptfile dogetfilepath ( #3587 )
2024-05-20 20:23:38 +08:00
737da954a0
util/gconv: remove unnecessary logic for function doScanList ( #3588 )
2024-05-20 19:42:51 +08:00
a9a0785252
util/gconv: refactor code unit testing ( #3591 )
2024-05-20 19:40:30 +08:00
d5561aa323
cmd/gf: add gf init app/mono-app -a ( #3550 )
2024-05-15 20:25:43 +08:00
cf37731d5f
version: v2.7.1 ( #3573 )
2024-05-14 21:20:22 +08:00
0765741d99
os/gtime: fix #3558 time zone issues ( #3561 )
2024-05-10 17:44:45 +08:00
74338c498e
ci: fix code coverage not sync to CodeCov ( #3570 )
2024-05-10 17:44:01 +08:00
ff28d88572
cmd/gf: fix gen enums failed in go version v1.22.1 ( #3565 )
2024-05-07 20:40:35 +08:00
94c7185826
util/gvalid: fix slice enums verification failed ( #3566 )
2024-05-07 20:36:55 +08:00
8e075fba53
contrib/sdk/httpclient: add custom response handler support, fixe #3539 ( #3540 )
2024-04-29 20:37:25 +08:00
3b1d1d33b8
other: update some issue templates ( #3544 )
2024-04-29 19:37:57 +08:00
ac6604730a
cmd/gf: fix pbentity generate fail in mono-repo ( #3547 )
2024-04-29 19:27:15 +08:00
3cdd9ef36e
cmd/gf: fix command gf gen dao for fieldMapping feature ( #3549 )
2024-04-29 19:22:02 +08:00
9aa426a105
database/gdb/gdb_model_soft_time: fix soft-time support fieldType:LocalTypeUint64 in Insert/Update perations ( #3551 )
2024-04-29 19:00:51 +08:00
5b7cae78bc
feat: add custom field type mapping support for command gf gen dao ( #3498 )
2024-04-25 19:19:09 +08:00
cc98e5759c
fix : #3200 empty content in glog handler after structure logging feature supported ( #3475 )
2024-04-25 19:13:50 +08:00
12ff9af431
test/gtest: add support for string type in AssertIN and AssertNI ( #3537 )
2024-04-24 21:04:54 +08:00
aa6d83fe1c
other: enhance Issues and Pull Requests template ( #3533 )
2024-04-24 19:20:34 +08:00
f48ca959f7
chore: fix function names in comment ( #3536 )
2024-04-24 19:14:42 +08:00
59a959a361
fix : #3459 gf gen dao should ignore link configuration from file as it is passed from arguments ( #3531 )
2024-04-23 21:43:45 +08:00
ce57b26769
cmd/gf: fix unit testing cases for compatibility with windows ( #3532 )
2024-04-23 21:39:11 +08:00
adc94fd97a
fix: uint testing case for signal feature of package gproc occasionally failed ( #3529 )
2024-04-23 21:30:33 +08:00
1013df1627
enhance: improve performance of struct converting for package gconv ( #3412 )
2024-04-23 21:30:06 +08:00
646ed5ea14
enhance: upgrade version of dependencies ( #3526 )
2024-04-22 19:59:59 +08:00
a39e6a2c62
enhance: gf gen ctrl with -merge option ( #3490 )
2024-04-18 20:12:02 +08:00
fa4f31f3dd
chore: fix function names in comments for package otelmetric ( #3493 )
2024-04-18 20:04:23 +08:00
adb813fbad
enhance: upgrade version of dependencies ( #3494 )
2024-04-18 20:02:27 +08:00
ebe567dab2
fix: missing file closding when printing downloading percent of gf cli file for command gf up ( #3483 )
2024-04-16 19:49:09 +08:00
bbcf49db98
fix : #3238 first column might be overwritten in interal context data in multiple goroutines querying ( #3476 )
2024-04-16 19:31:06 +08:00
75763735c4
enhance: improve command gf gen ctrl using AST for parsing DstFolder ( #3478 )
2024-04-15 20:16:44 +08:00
285e5a0580
fix: file name example/pack/packed/paked.go → example/pack/packed/packed.go ( #3479 )
2024-04-15 20:11:01 +08:00
2ee0c2bdac
fix: sqlitecgo to support 32-bit architecture ( #3480 )
2024-04-15 10:03:49 +08:00
ae58dc846a
fix: missing arguments on Windows platform for package gproc ( #3482 )
2024-04-15 09:59:35 +08:00
91f449dff8
feat: add new rule required-if-all for package gvalid ( #3455 )
2024-04-11 19:45:09 +08:00
2523889765
enhance: improve gf gen ctrl using AST ( #3470 )
2024-04-11 19:15:31 +08:00
4c6b146627
feat: add Scan method for incremental key retrieval in gredis ( #3451 )
2024-04-11 15:37:22 +08:00
6e2d238f56
emhace: unit testing cases update for package cmd/gf and contrib/drivers ( #3453 )
2024-04-10 20:55:09 +08:00
d7a0482146
fix : #3465 If the value of a string is null, the value of string is nil after the string is converted to []string ( #3468 )
2024-04-10 20:18:03 +08:00
b040654574
enhance: add ORM tag to the entity result of command gen dao to make entity assignment more faster ( #3454 )
2024-04-07 19:19:07 +08:00
505fc25a64
fix: fsnotify watcher panics when closing ( #3399 )
2024-04-07 14:12:03 +08:00
83ba887df7
fix : #3449 accept slice parameter as json.RawMessage for http request ( #3452 )
2024-04-07 14:09:52 +08:00
911f1cb1de
enhance: use map iter to iterate the map instead of map keys and values ( #3457 )
2024-04-07 10:00:04 +08:00
1b7aea0ced
feat: add metrics option and prometheus handler wraps ( #3445 )
2024-04-07 09:57:13 +08:00
db5eed17b1
fix: invalid cache key using pointer address of variable for soft time fields ( #3448 )
2024-04-02 20:10:16 +08:00
1ffb510a77
feat: add custom go module configuration support when initialize go project using command gf init ( #3425 )
2024-04-02 14:05:22 +08:00
f039393b2b
fix: map converting in loop logic of validation for package gvalid ( #3423 )
2024-04-01 19:23:12 +08:00
00ba053ce6
enhance: use in-memory cache for soft field name and type ( #3420 )
2024-04-01 19:22:23 +08:00
dcf1f19ff7
enhance: Save operation support for mssql ( #3365 )
2024-04-01 19:18:54 +08:00
06826750ed
enhance: improve Save feature for drivers oracle and dm ( #3426 )
2024-04-01 19:08:26 +08:00
e0a2645f4a
fix : #3390 name&shor tag mapping failed to command input object for package gcmd ( #3429 )
2024-04-01 19:07:08 +08:00
509fdf45c6
feat: add auth support in address configuration for etcd registry ( #3439 )
2024-03-29 19:19:45 +08:00
1e7d897b66
fix: lost trace content in occasion when shutting down trace ( #3418 )
2024-03-29 10:08:58 +08:00
6df0a9ca66
fix: the cron job with precise second time pattern might be executed twice in the same time ( #3437 )
2024-03-28 22:09:11 +08:00
1c12f3a30d
fix: http superfluous response.WriteHeader call in some scenario ( #3428 )
2024-03-28 22:08:54 +08:00
3a9e0e34ca
fix : #3432 Add Access-Control-Expose-Headers: Content-Disposition header in ServeFileDownload ( #3433 )
2024-03-28 20:07:56 +08:00
8669512f42
feat: add metric feature support in goframe ( #3138 )
2024-03-24 21:18:30 +08:00
313d9d138f
fix: unit testing cases of contrib/drivers occasionally failed by using now time assertion ( #3410 )
2024-03-21 21:57:33 +08:00
040118b7c6
fix : #3370 fixed process parameter parsing failed on Windows for package gproc ( #3386 )
2024-03-20 19:58:42 +08:00
b3f48212f1
fix : #3362 IsEmpty panics when some interface implement panics with nil receiver ( #3367 )
2024-03-20 19:52:12 +08:00
cade0775e8
enhance: Save operation support for contrib/drivers/dm ( #3404 )
2024-03-20 19:18:25 +08:00
164aad48c3
fix: unit test of dm failed occasionally ( #3382 )
2024-03-19 19:40:52 +08:00
04756d05a7
fix: fix lost log directory path for grapc log ( #3387 )
2024-03-18 19:14:31 +08:00
409041b965
enhance: support save for Oracle ( #3364 )
2024-03-13 20:11:45 +08:00
11f7187367
fix: unit test of dm failed occasionally ( #3369 )
2024-03-13 19:29:41 +08:00
4feda4c395
enhance: do not ignore error from gdb.FormatMultiLineSqlToSingle func ( #3368 )
2024-03-13 19:22:17 +08:00
a8713da97f
enhance: cut tracing content as unicode for safety ( #3342 )
2024-03-13 19:21:16 +08:00
199737cd0f
fix: for typo in comments for package contrib/drivers and gdb ( #3366 )
2024-03-12 20:40:20 +08:00
3a8f246569
fix: unit test error in PgSQL and SQLite; Unified t.Assert(err, nil) to t.AssertNil(err) ( #3356 )
2024-03-12 20:05:03 +08:00
607f079b23
fix: cache value assertion panic if the cache adapter is not in-memory for soft time feature of package gdb; improve converting performance for gconv.Scan ( #3351 )
2024-03-07 11:36:42 +08:00
cab6b89446
enhance: update contrib/drivers/README.MD ( #3355 )
2024-03-07 11:34:49 +08:00
6ed3038312
feat: version v2.6.4 ( #3352 )
2024-03-07 10:12:58 +08:00
9b48da459e
enhance: add sentinel auth config for redis ( #3348 )
2024-03-06 19:27:52 +08:00
fbd266fad0
enhance: add Save operation support for SQLite #2764 ( #3315 )
2024-03-06 19:22:58 +08:00
240dadff92
fix: WherePri function wrong in pgsql #3330 ( #3339 )
2024-03-06 19:19:07 +08:00
290f4a3e65
fix: recognize json_valid constraint as json field type for database mariadb #2746 ( #3309 )
2024-03-06 19:07:31 +08:00
97fcd9d726
enhance: improve FormatUpsert implements for pgsql ( #3349 )
2024-03-06 19:05:13 +08:00
df15d70466
enhance: change tracing span name from request uri to router uri for http request ( #3338 )
2024-03-05 21:11:27 +08:00
680ae8616b
fix: generated dao go files forcely cleared by command gf gen dao if clear set true ( #3337 )
2024-03-05 20:49:19 +08:00
4feb8219fa
feat: upgrade set-go version and add go 1.22 version ( #3316 )
2024-03-04 20:18:31 +08:00
509cc47d3f
enhance: add Save operation support for pgsql #3053 ( #3324 )
2024-03-04 20:17:43 +08:00
849b104c31
enhance: gproc.signal enhance #3325 ( #3326 )
2024-03-04 20:10:05 +08:00
ce3ef13e6a
fix: otel tracing content contains invalid UTF-8 ( #3340 )
2024-02-29 20:22:42 +08:00
c8a73f8c25
nacos-sdk-go upgrade to v2 ( #3334 )
2024-02-28 21:52:32 +08:00
b71ee13ccd
fix error code comment on i18n defaultLanguage value ( #3335 )
2024-02-28 21:51:43 +08:00
a347cdc30e
fix github pages ci ( #3331 )
2024-02-28 19:20:37 +08:00
39a88ef650
fix typo ( #3332 )
2024-02-27 21:09:43 +08:00
8b156e25c4
enhance mysql_z_unit_model_test ( #3329 )
2024-02-27 21:07:31 +08:00
eb0c4b3824
fix #3226 ( #3322 )
2024-02-27 20:37:49 +08:00
56ef0c0735
fix issue command gf run -w takes no effect ( #3321 )
2024-02-27 20:33:57 +08:00
a1a9465e52
add ExampleCache_Clear ( #3310 )
2024-02-27 19:42:58 +08:00
d64a31fd1a
new version v2.6.3 ( #3308 )
2024-02-07 17:11:36 +08:00
6cdf044320
fix issue #2616 ( #3307 )
2024-02-07 16:47:41 +08:00
5307f0742e
add # for cron pattern that can ignore seconds, which makes the cron pattern running in minimum minute like linux crontab pattern ( #3306 )
2024-02-07 15:38:24 +08:00
51326f3d02
fix #3245 ( #3298 )
2024-02-06 11:47:25 +08:00
e1fa99013a
use iota to unify the enums definition ( #3305 )
2024-02-06 11:44:29 +08:00
72014689e4
fix issue #2643 ( #3304 )
2024-02-06 10:21:44 +08:00
2acdf4bb47
add field type detection for soft time field like created_at/updated_at/deleted_at to support unix timestamp or bool deleting table field ( #3293 )
2024-02-06 10:21:23 +08:00
85c5b7f19e
fix issue #2594 ( #3303 )
2024-02-05 20:40:03 +08:00
42ec1a0076
fix issue #2572 ( #3301 )
2024-02-05 19:20:05 +08:00
553cc45e54
fix empty pwd path read from gfile.Pwd() which could cause internal error logging for gview.New ( #3302 )
2024-02-05 16:49:44 +08:00
7415ec32c8
fix issue #2503 ( #3299 )
2024-02-05 10:30:03 +08:00
14568562e3
fix issue #2552 ( #3300 )
2024-02-05 10:29:43 +08:00
cc79d23334
fix issue #2457 ( #3297 )
2024-02-02 10:57:24 +08:00
ef2b47d180
fix issue #3292 ( #3294 )
2024-02-01 16:02:36 +08:00
adc056f547
feat: support running commands via non-command line arguments ( #3290 )
2024-01-30 20:14:13 +08:00
8266a16b4e
fix issue #3286 ( #3289 )
2024-01-30 20:03:58 +08:00
c4a51f4c2f
bugfix:fix gconv map deep option not effective ( #3287 )
2024-01-29 19:52:04 +08:00
4ddc9c3909
add offline document link in readme.md ( #3284 )
2024-01-25 20:47:21 +08:00
0a2f8abb40
Update annotation for redis.toml ( #3282 )
2024-01-24 20:37:41 +08:00
81de5d3f25
fix workflow script for cli building and release ( #3279 )
2024-01-24 20:36:50 +08:00
e6d61e6e14
fix error in gerror.HasCode ( #3277 )
2024-01-24 20:36:32 +08:00
4fb739615b
version v2.6.2 ( #3276 )
2024-01-22 21:53:10 +08:00
ba39323d30
improve converter feature for package gconv ( #3211 )
2024-01-22 21:52:54 +08:00
383937fe69
add example for ctx keys feature of package glog ( #3273 )
2024-01-22 21:07:40 +08:00
f919f90bf5
rename gitee issue template ( #3274 )
...
rename gitee ISSUE_TEMPLATE.MD to ISSUE_TEMPLATE
2024-01-22 21:07:04 +08:00
b4f6f06ab5
no printing internal middleware for ghttp.Server ( #3271 )
2024-01-22 21:05:40 +08:00
73fbca40ca
add internal error logging and update comments for gclient.RequestVar ( #3270 )
2024-01-18 10:21:38 +08:00
e8d3fcac6b
feat: upgrade gitee sync Hub Mirror Action ( #3272 )
2024-01-18 10:21:14 +08:00
f87182d5b8
fix workflow for gitee sync ( #3269 )
2024-01-17 20:27:41 +08:00
951f8921cd
fix #3237 ( #3267 )
2024-01-17 15:35:48 +08:00
d26b7c5437
fix some wrong comment ( #3265 )
2024-01-16 14:08:07 +08:00
9407fda197
add example for exporting prometheus metrics using ghttp.Server ( #3266 )
2024-01-16 14:07:49 +08:00
905913f7be
Fix gf gen service bug. Fix the issue of significant differences in the generated code every … ( #3260 )
2024-01-15 20:35:14 +08:00
4b8eaac73f
fix issue #3232 ( #3247 )
2024-01-15 20:33:30 +08:00
ca242ff401
fix #3251 ( #3254 )
2024-01-11 22:15:22 +08:00
42e3c5f39a
fix #3253 ( #3255 )
2024-01-11 22:14:22 +08:00
4f4d2c2f8e
add MiddlewareNeverDoneCtx for package ghttp ( #3250 )
2024-01-06 13:03:49 +08:00
5a01798481
fix: memory leak when gcache.NewAdapterMemory with lru ( #3241 )
2024-01-03 20:03:19 +08:00
8af1eb693e
Update README.MD ( #3243 )
2024-01-03 19:49:06 +08:00
335ccb32af
Update Github issue template ( #3234 )
2024-01-02 20:42:14 +08:00
e1f2666499
add example for serve file ( #3193 )
2024-01-02 20:19:40 +08:00
22fcfdf755
add configuration support for logger of grpcx.Server ( #3223 )
2024-01-02 20:19:05 +08:00
1e21b61a19
fix typo flie -> file ( #3228 )
2024-01-02 20:17:54 +08:00
6abd8bd864
comments update for package gstr ( #3233 )
2024-01-02 20:16:51 +08:00
4876ae0e2b
fix:gz files are compressed repeatedly every time tick ( #3236 )
2024-01-02 20:10:57 +08:00
63bdf41d40
fix #3191 ( #3194 )
2023-12-28 20:18:29 +08:00
984cca8b82
feat: update dependent redoc js for swagger ui ( #3217 )
2023-12-28 20:13:21 +08:00
9f7ce42c74
enhance #3221 ( #3224 )
2023-12-28 20:07:07 +08:00
16a43bcb6c
Add comment for Format method so that you can know Layout method. ( #3230 )
2023-12-26 16:19:59 +08:00
85d95e3e27
version v2.6.1 ( #3222 )
2023-12-21 21:12:51 +08:00
4cce8557e6
fix : #2924 ( #3177 )
2023-12-21 10:16:14 +08:00
d60d7674d7
fix issues for package contrib/drivers/dm ( #3157 )
2023-12-20 20:33:58 +08:00
7f9467d1f8
fix : #2938 ( #3178 )
2023-12-20 20:25:23 +08:00
d08e3ef838
fix : #2689 change sessionId in cookie ( #3203 )
2023-12-20 20:21:15 +08:00
645c5ff5b5
fix issue #3218 #3204 ( #3220 )
2023-12-19 21:58:12 +08:00
7975e391f0
Version/v2.6.0 ( #3213 )
2023-12-18 20:59:09 +08:00
565790036e
improve gen dao to support removeFieldPrefix ( #3208 )
2023-12-18 20:26:43 +08:00
44819b135e
fix issue #3204 ( #3212 )
2023-12-18 20:19:18 +08:00
bb19877430
fix : #3197 ( #3206 )
2023-12-18 19:11:39 +08:00
fc02e06423
doc: update readme img ( #3207 )
2023-12-15 15:56:08 +08:00
dd8a5dcf32
fix : #3179 ( #3195 )
2023-12-14 21:51:28 +08:00
33584506ab
fix issue: request body was closed while retrying in callRequest method ( #3199 )
2023-12-14 14:18:31 +08:00
ee2cf92479
Version/v2.6.0 beta ( #3183 )
2023-12-04 19:34:48 +08:00
0b6dd6fb13
improve initialization performance and logging content for cmd gf ( #3174 )
2023-11-30 18:59:49 +08:00
993467bb3c
test: add date-format test for RFC3339 ( #3181 )
2023-11-29 19:12:21 +08:00
c7c9f0011a
fix : #2967 ( #3175 )
2023-11-29 19:05:21 +08:00
9aa872e705
improve map converting feature using MapOption for package gconv ( #3170 )
2023-11-23 18:59:04 +08:00
ea5d52cb2f
fix issue #3147 ( #3161 )
2023-11-22 21:05:39 +08:00
b1754f8254
script updates for version upgrading ( #3169 )
2023-11-22 20:49:07 +08:00
83f08b3135
fix issue in Join stements with prefix specified for package gdb ( #3151 )
2023-11-20 20:47:26 +08:00
d3d1f94e40
Upgrade nacos sdk to latest version ( #3166 )
2023-11-20 20:47:00 +08:00
fc8572e8dd
version v2.5.7 ( #3162 )
2023-11-20 10:01:54 +08:00
85acd3d31d
Fix the bug that ScanAndCount and AllAndCount report errors in sqlserver ( #3155 )
2023-11-16 20:15:48 +08:00
9694a68211
Optimize the information display of gf -v ( #3145 )
2023-11-16 20:10:45 +08:00
0be8b29e42
improve gen service code ( #3140 )
2023-11-14 20:53:41 +08:00
5580ac9475
fix issue in cross-building failed in windows ( #3152 )
2023-11-14 20:10:49 +08:00
84ed66018e
fix issue: Windows Platform did not handle process signal ( #3154 )
2023-11-14 20:00:26 +08:00
4d7f9552fe
fix: gdb unsupport aliyun hologres link ( #3150 )
2023-11-13 22:05:53 +08:00
d4b14fd717
add gen service unit testing ( #3142 )
2023-11-09 20:04:05 +08:00
0bd15bdab5
fix: "gf gen dao" utils.GetModPath Return empty string in windows ( #3141 )
2023-11-09 20:02:47 +08:00
0b407c5e6d
fix "gf gen pb" api and ctrl not working well. ( #3076 )
2023-11-08 21:26:51 +08:00
5f5b82188c
example: log rotate ( #3137 )
2023-11-08 21:23:39 +08:00
a17849bc39
improve struct converting in parameter name case sensitive scenario for package gconv ( #3122 )
2023-11-08 21:17:55 +08:00
f3e3a5af5a
feat: improve code for shutdown of otel ( #3136 )
2023-11-08 21:16:23 +08:00
dc71c0d28f
enhance #3129 ( #3134 )
2023-11-06 19:27:26 +08:00
eb99f5ebfe
rename function name PKCS5UnPadding to PKCS7UnPadding ( #3124 )
2023-11-06 19:20:07 +08:00
007fe0ea1a
enhance #3063 ( #3115 )
2023-11-06 09:59:45 +08:00
50b04c658c
improve implements and fix issues for package contrib/drivers/dm ( #3128 )
2023-11-06 09:52:36 +08:00
cbea89e6f7
fix duplicated route dump for package ghttp ( #3116 )
2023-11-02 09:48:39 +08:00
e2e12fadb0
add function CaseConvert for package gstr ( #3098 )
2023-11-01 19:52:07 +08:00
47eaa513c0
add unit testing cases for command gen ctrl ( #3090 )
2023-11-01 19:23:03 +08:00
3bbc0fdd21
add Output configuration support for command gf build in cross-buildling binary scenario ( #3120 )
2023-11-01 19:18:44 +08:00
9393072745
improve TemplateGenCtrlController is comments and formats ( #3065 )
2023-10-31 20:21:18 +08:00
e42aa64d75
improve impelements for logging file rotation in windows ( #3080 )
2023-10-31 20:19:01 +08:00
b6935a7285
fix(goai): example value needs to be converted just like default value ( #3085 )
2023-10-31 20:18:39 +08:00
b0367e4a62
fix: gRPC-Go HTTP/2 Rapid Reset vulnerability ( #3095 )
2023-10-31 20:17:39 +08:00
0b71bc43a8
fix issue #3099 ( #3107 )
2023-10-31 20:02:20 +08:00
afeca8cf9d
fix: nacos mod ( #3103 )
2023-10-31 10:04:51 +08:00
33c396fb74
fix cmd gen pbentity for generating go orm files for database postgres ( #3105 )
2023-10-31 10:04:07 +08:00
4903ef7887
fix issue #3100 ( #3106 )
2023-10-30 20:27:48 +08:00
ab5ab4c675
Add the Protocol attribute to the Redis configuration ( #3109 )
2023-10-30 20:11:23 +08:00
3ea61d084e
fix issue #3086 ( #3089 )
2023-10-26 10:04:21 +08:00
2433b2ce99
ignore cmd/gf/go.work.sum from version controll ( #3087 )
2023-10-25 21:17:21 +08:00
927758a2a9
fix separator issue in windows os for command gf gen ( #3088 )
2023-10-25 21:16:05 +08:00
cb0d018fa4
feat: upgrade version and improve consul action ( #3078 )
2023-10-24 20:36:01 +08:00
49f69f6ade
Update README.MD ( #3082 )
2023-10-24 20:33:10 +08:00
bcb479aabb
fix issue #3077 ( #3081 )
2023-10-24 10:02:04 +08:00
db59f4232f
add README and example cases for nacos registry ( #3075 )
2023-10-23 20:04:39 +08:00
aa625d24bc
add example for http rate llimit ( #3072 )
2023-10-23 20:02:37 +08:00
36cfbaaa22
README.MD updates for cli installation ( #3071 )
2023-10-23 20:00:10 +08:00
f8462b5218
split ci workflow into two workflows for short ( #3069 )
2023-10-23 19:28:26 +08:00
b2bd12a371
version v2.5.5 ( #3068 )
2023-10-20 10:21:04 +08:00
acf2307eb9
fix issue #2963 ( #3062 )
2023-10-19 19:58:19 +08:00
93964ee231
delete repeat code in ut for package ghttp ( #3058 )
2023-10-18 20:04:07 +08:00
943939ba2b
improve cache duration from second to millisecond for redis adapter of package gcache ( #3052 )
2023-10-18 20:02:23 +08:00
f1b5a223bf
add go workspace for cmd/gf, to enable go install for cmd/gf ( #3040 )
2023-10-18 20:01:16 +08:00
bb9cd37fab
add SetNoUrlEncode/NoUrlEncode functions for gclient.Client ( #3041 )
2023-10-17 21:19:59 +08:00
972f8c3aff
improve comments for package gconv ( #3057 )
2023-10-17 21:09:46 +08:00
34e522306d
resolve response is gzip in internalMiddlewareServerTracing ( #3055 )
2023-10-17 20:35:56 +08:00
7c92c2f7e8
improve comments and variable names for gcfg.AdapterFile of package gcfg ( #3046 )
2023-10-17 20:12:07 +08:00
5204bdb60d
add option merge controlling generating controller files into one single file for command gf gen ctrl ( #3045 )
2023-10-17 20:11:23 +08:00
6ab8d065d1
fix:incorrect parameter passing causes captured errors to be lost ( #3048 )
2023-10-16 21:20:21 +08:00
d4e686226b
improve version checks for ci script ( #3047 )
2023-10-16 21:18:23 +08:00
19d7714503
fix security issue for golang.org/x packages ( #3042 )
2023-10-16 20:45:43 +08:00
f464f30e6f
improve comment of router feature for ghttp.Server ( #3014 )
2023-10-16 20:41:10 +08:00
0e7d7d1eee
feat: add -w/--watchPaths for subcommand gf run ( #3009 )
2023-10-12 21:07:51 +08:00
6af66a0201
add service registry implements using nacos ( #2995 )
2023-10-12 21:06:37 +08:00
81f3ad043d
ci: Update action script to remove inactive labels ( #3013 )
2023-10-11 21:39:20 +08:00
ca7450f595
enable go cache for ci, coverage of ut testing is only available after merge of pr ( #3011 )
2023-10-11 21:38:43 +08:00
65192a7f92
fix issue gconv struct slice/map of json.RawMessage ( #3006 ) ( #3008 )
2023-10-11 21:35:27 +08:00
8c309ac9fe
fix issue #2907 ( #3005 )
2023-10-11 21:34:17 +08:00
7f1ce2aff3
fix issue #2904 ( #3004 )
2023-10-11 21:33:51 +08:00
10b67fc7b0
fix issues #2980 ( #2994 )
2023-10-11 21:28:53 +08:00
3cd005911d
fix issue reading resource from manage in function New of package gres ( #2961 )
2023-10-10 20:02:52 +08:00
d10d96800f
temporaryly close the testing of package kubecm to avoid disk unavailable issue ( #3007 )
2023-10-10 14:09:58 +08:00
35e5f1f204
feat: Migrate the service call tracing to use otlphttp or otlpgrpc for reporting ( #3001 )
2023-10-09 20:09:20 +08:00
1efdb72990
add direct service address support for grpc client ( #2991 )
2023-10-09 20:03:45 +08:00
8d925d4741
fix issue #2890 ( #3002 )
2023-10-09 20:00:08 +08:00
d6362cad16
add List2/List3/ListAndTrim2/ListAndTrim3 functions for package gstr ( #2986 )
2023-10-09 19:58:14 +08:00
00e83fed3f
add function Partition for Model of package gdb ( #2989 )
2023-10-08 09:49:21 +08:00
02f1cc7b40
allowing use printToStdout, printToFile and printToWriter at the same time for Logger of package glog ( #2990 )
2023-10-07 20:46:24 +08:00
32a60c2e96
Add consul config adapter usage example. ( #2988 )
2023-10-07 20:19:47 +08:00
30040332a7
improve address configuration for grpc server ( #2982 )
2023-09-27 14:40:32 +08:00
569cbb09bf
fix: improve specification version ( #2987 )
2023-09-26 22:03:18 +08:00
130191f4ed
add in:header tag cache for http request to enhance performance ( #2923 )
2023-09-25 21:34:58 +08:00
e6732039c6
add consul config adapter ( #2964 )
2023-09-25 21:02:55 +08:00
df92c483d0
fix isue #2976 , to be compatible with bad response type definition for strict route function ( #2977 )
2023-09-25 20:40:32 +08:00
7c9eefef3d
feat: Preserve original file permissions & Default copy permissions c… ( #2969 )
2023-09-19 20:20:13 +08:00
42de1c1dbe
improve example cases for package gi18n ( #2970 )
2023-09-19 20:18:43 +08:00
395df940d7
fix(gutil): panic when field is []byte(BINARY in mysql) ( #2957 )
2023-09-18 20:16:59 +08:00
ef1e18df19
fix: gutil.IsMap judgment logic error ( #2953 )
2023-09-13 19:30:02 +08:00
e684eae878
Make GTime support multiple formats ( #2933 )
2023-09-13 19:29:25 +08:00
5219c5c37e
add ut cases for command gen dao ( #2958 )
2023-09-12 22:00:35 +08:00
5059abd88e
upgrade dependence github.com/apolloconfig/agollo/v4 version from v4.1.1 to v4.3.1 for package contrib/config/apollo ( #2949 )
2023-09-12 21:20:53 +08:00
e2ed058e3b
feat: upgrade action/checkout to v4 ( #2948 )
2023-09-12 21:20:10 +08:00
ccc959a2d3
feat: jaeger package will be removed in v2.6.0. ( #2946 )
2023-09-12 21:17:47 +08:00
a5a7d23792
improve g.Go ( #2956 )
2023-09-12 20:00:01 +08:00
5bc9acdab3
version v2.5.3 ( #2945 )
2023-09-11 10:19:51 +08:00
ab1970e7d6
add new function g.Go ( #2943 )
2023-09-11 10:18:44 +08:00
1582714325
improve signal listening for package grpcx/ghttp/gproc ( #2942 )
2023-09-11 10:15:08 +08:00
7391a4d45a
improve trace span generating for package gctx and http tracing content for package ghttp ( #2937 )
2023-09-11 10:14:00 +08:00
7e16d9b63e
fix codes due to static codes analysis ( #2935 )
2023-09-07 20:22:20 +08:00
d49dccb147
test: add unit tests regarding issue 2901 ( #2930 )
2023-09-05 19:30:54 +08:00
6cddfdb313
improve join feature for package gdb ( #2929 )
2023-09-05 19:29:28 +08:00
912316d765
add cluster mode and tls configuration support for package gredis ( #2936 )
2023-09-05 19:23:17 +08:00
b9e2b05f04
change interface ConvertDataForRecord to ConvertValueForField for package gdb ( #2916 )
2023-09-04 21:23:54 +08:00
887803e495
add structure logging handler for package glog ( #2919 )
2023-09-04 21:23:46 +08:00
eb11061bd2
fix: gjson encode to string expect inconformity(issue 2520) ( #2928 )
2023-09-04 21:19:22 +08:00
000c7a92ed
ORM add function: LeftJoinOnFields,RightJoinOnFields,InnerJoinOnFields ( #2921 )
2023-09-04 20:33:53 +08:00
097b26f318
fix: multiple interfaces cause the original type to be inaccessible ( #2915 )
2023-09-04 20:11:14 +08:00
3da5e5e865
fix: gutil.IsSlice judgment logic error ( #2910 )
2023-09-04 20:09:55 +08:00
e60262fec9
docs: fix code comment err in Model Join case ( #2884 )
2023-09-04 20:05:52 +08:00
74bf1b4bc3
fix(cmd): Fix gf build examples ( #2917 )
2023-08-31 15:32:49 +08:00
3f69e0db36
improve error stack configuration for package gerror, add framework error stack filter for package glog ( #2918 )
2023-08-31 15:31:55 +08:00
7d4c59ac5a
fix: OpenAPI cannot correctly identify the file type under the canoni… ( #2898 )
2023-08-28 21:52:22 +08:00
3841f05e02
add AdapterContent implements for gcfg.Adapter ( #2892 )
2023-08-28 21:49:30 +08:00
bcd409ab1c
fix typo "Upadte" -> "Update" ( #2906 )
2023-08-28 21:48:56 +08:00
4dd43aa018
improve packed project template for command init ( #2885 )
2023-08-23 19:28:09 +08:00
aed695313a
rewrite gmutex with sync.RWMutex ( #2883 )
2023-08-23 19:27:57 +08:00
cf299273c4
version v2.5.2 ( #2878 )
2023-08-18 09:57:25 +08:00
53323f3cf9
improve support for generic router registering ( #2877 )
2023-08-17 21:16:19 +08:00
24ee5341ec
Fix empty map or struct convert to another map will return error. ( #2863 )
2023-08-17 20:59:16 +08:00
ed4d1554ab
improve converter feature for package gconv ( #2869 )
2023-08-17 20:33:12 +08:00
ac3481ed43
it returns error when Scan to a none empty slice with empty Result for package gdb ( #2858 )
2023-08-17 20:29:06 +08:00
3df5969348
fix generic check with slice for ghttp ( #2850 )
2023-08-16 21:42:36 +08:00
ea6a773d60
fix: marked gcode.CodeInternalPanic for panic ( #2860 )
2023-08-14 09:53:13 +08:00
35a326e169
fix(ghttp): fix access log info format ( #2853 )
2023-08-10 22:12:10 +08:00
4020eb9b4c
fix issue in SliceMap/Maps for package gconv when nil value in map of slice item ( #2857 )
2023-08-10 21:59:21 +08:00
243fe73c57
improve comment replacement regex pattern for command gen service ( #2846 )
2023-08-08 20:39:38 +08:00
932f8c48ef
Add gconv custom converter feature. ( #2828 )
2023-08-07 21:15:22 +08:00
7c1be3eb63
improve data converting for DB.DoInsert/DoUpdate ( #2830 )
2023-08-07 21:03:56 +08:00
5de2cfbfa1
improve command gen ctrl for api parsing and interface file generating ( #2836 )
2023-08-07 21:02:16 +08:00
b593c00d97
fix gf gen service remove all comments. ( #2845 )
2023-08-07 20:42:10 +08:00
7798e96190
add more ut case for package goai ( #2843 )
2023-08-07 20:39:01 +08:00
55ac18d90a
Update README for minimum go version requirement ( #2833 )
2023-08-03 21:14:48 +08:00
a409db5540
Bump golang.org/x/net from 0.0.0-20211112202133-69e39bad7dc2 to 0.7.0 in /contrib/drivers/sqlitecgo ( #2834 )
2023-08-03 21:13:23 +08:00
dd5d56674e
Bump golang.org/x/text from 0.3.8-0.20211105212822-18b340fc7af2 to 0.3.8 in /contrib/drivers/sqlitecgo ( #2835 )
2023-08-03 21:12:45 +08:00
79617570ca
Feat:upgrade redis v9 ( #2825 )
2023-08-03 20:01:36 +08:00
a4e7cc4700
fix: psgql tx unsupport LastInsertId ( #2815 )
2023-08-03 19:59:22 +08:00
2fbe4125dd
feat: Using sqlite CGO is for building a 32-bit Windows operating system ( #2743 )
2023-08-03 19:58:16 +08:00
47915816b5
fix: disable map tag summary and description from the OpenAPI Operation to PathItem ( #2823 )
2023-08-02 20:45:58 +08:00
0f53660453
fix issue #2570 ( #2819 )
2023-08-02 20:41:28 +08:00
f3437dc00f
add generic support for http routes registering #2227 #2457 ( #2807 )
2023-08-02 20:35:58 +08:00
574d63b4fd
fix issue #2803 ( #2805 )
2023-08-01 22:06:10 +08:00
53e5a04073
change minimum golang version from v1.15 to v1.18 ( #2820 )
2023-08-01 21:15:28 +08:00
c51785125e
refactor: add default client instance for contrib/sdk/httpclient ( #2814 )
2023-08-01 20:45:20 +08:00
5230f8304e
fix issue #2816 ( #2817 )
2023-08-01 20:11:52 +08:00
e0e00434cc
expose iClient as IClient in generated sdk for command gen ctrl ( #2804 )
2023-07-26 21:27:58 +08:00
b95cb3180d
fix gen ctrl import path ( #2800 )
2023-07-25 21:50:47 +08:00
dec66dbd05
add NeverDone function for package gctx that creates and returns a never done ctx ( #2784 )
2023-07-25 20:45:34 +08:00
cb44c40a9c
fix issue #2482 ( #2789 )
2023-07-25 20:28:50 +08:00
2c22f4e17d
feat: improve watch for polaris registrar ( #2788 )
2023-07-25 20:17:17 +08:00
83fa3593b1
fix: orm generate sql wrong, issues #2782 ( #2787 )
2023-07-25 20:13:17 +08:00
4ad508c04d
feat: add Diff feature to gmap ( #2774 )
2023-07-20 20:07:43 +08:00
0d52386236
improve command init and gen ctrl ( #2785 )
2023-07-20 20:05:40 +08:00
16a5318d32
upgrade package gopkg.in/yaml.v3 to latest stable version v3.0.1 ( #2783 )
2023-07-20 09:57:04 +08:00
b1da02dff6
improve import path generating for command gen ctrl ( #2781 )
2023-07-20 09:56:48 +08:00
b99db92113
feat: gbuild add BuiltVersion ( #2754 )
2023-07-19 21:15:22 +08:00
c0dff1dc16
add default time check for converting functions of gtime.Time ( #2755 )
2023-07-19 21:11:54 +08:00
ef6ef506d6
fix issue #2775 ( #2777 )
2023-07-19 20:55:44 +08:00
b71ac868b7
fix gf gen ctrl import ( #2771 )
2023-07-19 20:15:26 +08:00
d72997da04
fix g.Wait not support OS Signal #2752 ( #2768 )
2023-07-19 20:06:06 +08:00
41c0dde9bf
add complicated map with custom type converting support for package gconv ( #2769 )
2023-07-17 10:06:06 +08:00
498b72f75a
improve gctx.New for none default opentelemetry provider ( #2756 )
2023-07-14 14:26:24 +08:00
5e231f3d61
add example for package gvalid ( #2767 )
2023-07-14 14:25:25 +08:00
a2fec50500
remove sharding feature from gdb.Model ( #2758 )
2023-07-13 21:15:53 +08:00
6d7edb1479
fix issue #2760 ( #2763 )
2023-07-13 21:15:07 +08:00
ce72f9a84b
fix typo ( #2753 )
2023-07-11 19:52:49 +08:00
4fc24e1391
add endpoints configuration for ghttp.Server ( #2741 )
2023-07-06 21:29:33 +08:00
160bddecd3
version v2.5.0 ( #2747 )
2023-07-06 21:28:38 +08:00
39810a520c
add redis-config Auth Username ( #2684 )
2023-07-06 20:58:31 +08:00
0dc47609b5
feat: improve polaris register and discovery ( #2739 )
2023-07-06 20:41:24 +08:00
8fb4636cb4
improve command gen service for import alias and comments handling ( #2745 )
2023-07-06 20:36:33 +08:00
30cf3dbbe6
add custom endpoints configuration for package grpcx ( #2625 )
2023-07-05 09:54:57 +08:00
c90e9311e3
fix issue #2734 ( #2740 )
2023-07-05 09:49:25 +08:00
ba2a7e4417
add chaining function Discovery to disable/enable discovery feature for package gclient; fix issue #2737 ( #2738 )
2023-07-04 20:21:12 +08:00
740dfa58a6
add sharding feature on Model for package gdb ( #2732 )
2023-07-04 14:42:41 +08:00
9620b15ea1
fix length check issue ( #2725 )
2023-07-04 09:49:09 +08:00
3fab7a341d
feat(glog): add log rotation support for short-running process ( #2658 )
2023-06-29 20:29:33 +08:00
5804547bc5
feat: add codecov.yml ignore cmd test ( #2729 )
2023-06-29 20:14:31 +08:00
70d0d20750
fix issue in converting value to nil when calling IsNil return ture for gdb.Core ( #2720 )
2023-06-28 22:06:51 +08:00
92e21c275c
Update README to demonstrate how to configure polaris ( #2724 )
2023-06-28 21:33:11 +08:00
8aff08581f
feat:add service comments. ( #2714 )
2023-06-28 21:10:47 +08:00
6eb0de42f8
update context of the original http request ( #2717 )
2023-06-28 21:04:49 +08:00
8c4a0b61b8
fix: cmd gen dao typeMapping.Name=>typeMapping.Type ( #2723 )
2023-06-28 10:55:08 +08:00
22696566d6
add type mapping feature for command gf gen dao ( #2722 )
2023-06-28 10:06:33 +08:00
c5c2938380
improve command gen ctrl and gen service ( #2711 )
2023-06-19 20:47:32 +08:00
d6433de4a6
add command gen ctrl for parsing api to generate controller and sdk go files ( #2708 )
2023-06-15 14:16:10 +08:00
15eaac35a8
bugfix : when using otel, calling gclient *Raw methods may result in null pointer exceptions ( #2697 )
2023-06-12 20:52:48 +08:00
46f3196297
Update gcompress_zip.go ( #2694 )
...
Fix index out of range when zipfile has dir __MAXOSX
2023-06-12 20:46:31 +08:00
842e5a6774
fix gdb_fun.go code comments ( #2687 )
2023-06-12 19:52:38 +08:00
2ece368810
add new validation rule "enums" ( #2690 )
2023-06-07 09:48:29 +08:00
1bbfc56121
improve key words transaction for package i18n ( #2652 )
2023-06-06 21:03:25 +08:00
835b252b5d
fix issue in Where when used in field with prefix that not match struct attribute name ( #2688 )
2023-06-06 20:40:32 +08:00
9bc9fc4545
improve command make version ( #2676 )
2023-06-06 17:10:32 +08:00
8cc5338870
fix version retrieving of goframe for command version ( #2682 )
2023-06-02 18:02:24 +08:00
9191003391
feat: improve golangci-lint config ( #2681 )
2023-06-02 17:09:45 +08:00
99236fd93b
version v2.4.2 ( #2679 )
2023-06-02 11:44:48 +08:00
b34d560bb7
add auto sync ci from github to gitee ( #2680 )
2023-06-02 10:05:42 +08:00
7bb4ddcfd5
ignore binary building if option Build is empty for command build ( #2678 )
...
ignore binary building if option Build is empty for command build
2023-06-01 21:52:59 +08:00
00190abad8
add method ScanAndCount and AllAndCount for Model package gdb ( #2635 )
2023-06-01 21:33:40 +08:00
aa8eabd853
fix issue #2439 ( #2673 )
2023-05-30 11:59:00 +08:00
4914517f6b
template updates for command gf init ( #2671 )
2023-05-29 20:12:06 +08:00
0865dbbf75
improve command up for goframe version upgrade ( #2670 )
2023-05-29 16:29:42 +08:00
d3a3ad0228
add oltp(http&grpc) trace support ( #2641 )
2023-05-29 10:00:41 +08:00
e075432c40
comment update for package contrib/drivers/mysql ( #2649 )
2023-05-25 22:00:57 +08:00
e816ab05de
refactor: code optimization ( #2667 )
2023-05-25 21:58:11 +08:00
a4762d0e02
fix issue in http proxy when repeatable reading request body content ( #2666 )
2023-05-25 11:56:12 +08:00
2329622564
add multiple methods support for united routes registering ( #2664 )
2023-05-25 10:58:06 +08:00
368312c816
add multiple methods support for object route ( #2663 )
2023-05-24 17:21:28 +08:00
f6dbe1a40c
change parameter prefix of type string to prefixes of type slice for command enums ( #2662 )
2023-05-24 14:12:49 +08:00
032d085619
fix issue in building binary for command docker ( #2660 )
2023-05-24 14:12:22 +08:00
a6fff37be8
add DumpJson for package gutil ( #2651 )
2023-05-24 10:04:19 +08:00
879283685d
fix(CLI): install cmd path choose empty not use default ( #2655 )
2023-05-23 21:59:47 +08:00
0f4f2a6672
fix issue in array border exceeded in RoundRobin of package gsel ( #2642 )
2023-05-23 21:30:47 +08:00
ff6f5ce237
update default logging time format using SetTimeFormat ( #2611 )
2023-05-23 20:59:58 +08:00
dc0467e934
add WhereOrNot/WhereOrPrefixNot functions for gdb.Model ( #2661 )
2023-05-23 17:35:47 +08:00
f0d22fe570
doc: correct level value comment ( #2653 )
2023-05-22 20:29:24 +08:00
05ee4d489a
new logo ( #2647 )
2023-05-16 09:55:21 +08:00
3c1ded22fd
cli command exits with code 1 if error ( #2645 )
2023-05-15 15:51:28 +08:00
bda5d252b2
fix host ip retrieving for package contrib/trace/jaeger when there is no intranet ip in host ( #2640 )
2023-05-12 11:59:05 +08:00
0c3e66d6a0
fix: genpbentity type error, []byte => bytes ( #2633 )
2023-05-12 10:17:07 +08:00
f31bf76f94
feat: modify readme doc address ( #2638 )
2023-05-11 20:44:56 +08:00
0afedee49d
fix: genpbentity invalid proto3 ( #2632 )
2023-05-11 20:12:58 +08:00
43d439a1cd
fix: When repairing protobuf to generate controllers, if the project … ( #2630 )
2023-05-11 20:11:04 +08:00
b8aeb4f0ee
fix missing .exe suffix for cli file for windows downloading, unable replacing self cli binary ( #2622 )
2023-05-08 21:21:23 +08:00
1408385612
fix duplicated fields in function TableFields of driver pgsql ( #2620 )
2023-05-05 21:10:05 +08:00
d6471d7d51
v2.4.1 ( #2615 )
2023-05-05 14:15:01 +08:00
aa9d66c53c
feat: improve polaris relation and add copyright for polaris example ( #2607 )
2023-05-05 10:04:32 +08:00
d9a7ee3e29
use first column name for Model.Array ( #2609 )
2023-04-28 14:55:53 +08:00
04c70f2037
fix empty string converted to none empty string type slice ( #2612 )
2023-04-28 14:55:37 +08:00
2198f0cefe
fix issue #2561 #2431 ( #2598 )
2023-04-27 11:35:46 +08:00
c6b9b4d326
fix file registry that not works on windows ( #2605 )
2023-04-27 11:34:54 +08:00
4c6ebe7808
http context never done ( #2602 )
2023-04-26 20:20:47 +08:00
a9090e4a72
fix some comments ( #2600 )
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2023-04-26 19:34:22 +08:00
0126eb5470
fix: polaris discouvery relation ( #2603 )
2023-04-26 19:31:28 +08:00
ed63617aa0
fix file permission error when overwriting directory containing .git … ( #2599 )
2023-04-25 21:36:37 +08:00
30f483a524
correct makefile ( #2597 )
2023-04-24 21:50:10 +08:00
894f202b75
version v2.4.0 ( #2595 )
2023-04-24 11:44:19 +08:00
9171585b2c
improve auto retrieving of ip addresses for service registering ( #2593 )
2023-04-23 21:58:17 +08:00
23d8ef32a3
fix: fix typo and go-staticcheck S1002 warning ( #2590 )
2023-04-21 10:13:59 +08:00
a031e112e5
add command gen enums ( #2591 )
2023-04-20 16:30:42 +08:00
da8297d770
improve AddObject to support Command/*Command parameter for package gcmd ( #2587 )
2023-04-18 10:09:07 +08:00
3991eb053c
fix issue #2584 ( #2586 )
2023-04-17 17:44:24 +08:00
6fb26c44d7
fix issue converting values to custom type pointers ( #2585 )
2023-04-17 16:34:36 +08:00
fdc027734c
add command make version to in Makefile ( #2579 )
2023-04-14 10:09:19 +08:00
32a7f6a0f0
feature/v2.4.0-rc4 ( #2578 )
...
* v2.4.0-rc3
* v2.4.0-rc4
2023-04-12 22:01:24 +08:00
5bbec48679
v2.4.0-rc2 ( #2575 )
2023-04-12 21:14:03 +08:00
d4b9ee4c61
version updates to v2.4.0-rc ( #2574 )
...
version updates
2023-04-12 20:24:20 +08:00
50b5cd50bc
fix issue in New when creating concurrent-safety var for package gvar ( #2573 )
2023-04-12 17:38:06 +08:00
53afbd0f05
uf case update for contrib/drivers/mysql ( #2569 )
2023-04-12 15:36:44 +08:00
b6874eb66d
update cli build action ( #2563 )
2023-04-12 11:54:15 +08:00
7ff7de4643
inherit context from http.Request for ghttp.Request ( #2550 )
2023-04-12 11:54:06 +08:00
5f148632d2
fix missing trace id in gctx.GetInitCtx ( #2562 )
2023-04-12 10:35:24 +08:00
c1325ef9a3
Add Filter function to garray ( #2541 )
2023-04-12 10:15:11 +08:00
d788b7ff5e
fix issue #2529 #2487 ( #2548 )
2023-04-12 10:14:14 +08:00
66d0663dc5
add clickhouse support in command gf gen dao ( #2557 )
2023-04-12 10:14:04 +08:00
a56524ee05
add RemoveValues for package garray ( #2568 )
...
add RemoveValues for package garray
2023-04-12 10:12:28 +08:00
1aa9f2809e
improve stream response for http ( #2564 )
2023-04-12 10:12:11 +08:00
261672e84c
feat: automatic update gf for contrib ( #2551 )
2023-04-11 21:13:29 +08:00
6a4e39e815
change temp dir to os.TempDir for package gfile ( #2547 )
2023-03-29 11:58:20 +08:00
4af9ce8a81
Bump golang.org/x/crypto from 0.0.0-20200622213623-75b288015ac9 to 0.1.0 in /cmd/gf ( #2546 )
2023-03-28 20:03:07 +08:00
5f146720fe
fix: unified go.mod dependent version ( #2452 )
2023-03-28 09:25:29 +08:00
67e6772d88
comment updates for gdb.Builder ( #2513 )
2023-03-28 09:23:08 +08:00
12e9febe9e
fix issue #2516 ( #2531 )
...
* fix issue #2516
* golang ci configuration updates
* add example for default value of http request
2023-03-22 20:14:57 +08:00
676022eeb6
fix issue #2509 ( #2530 )
2023-03-21 22:10:41 +08:00
3a8fc1e70d
optimize the handling of the SIGUSR1 signal ( #2532 )
...
optimize the handling of the SIGUSR1 signal
2023-03-21 21:26:49 +08:00
0b6798acb5
add Quick mode for gtimer ( #2488 )
2023-03-20 10:00:55 +08:00
e721124b6c
support microseconds resolution for created_at/updated_at/deleted_at ( #2512 )
2023-03-20 09:57:37 +08:00
b32eb30212
feat: improve polaris register and upgrade polaris-go version v1.3.0 ( #2524 )
2023-03-20 09:52:58 +08:00
967a39ecbe
feat:upgrade polairs-go sdk version v1.3.0 for config ( #2525 )
...
feat:upgrade polairs-go sdk version v1.3.0
2023-03-20 09:52:19 +08:00
dfb7f5abfb
improve error message when the router hander definition is not standrad ( #2528 )
2023-03-20 09:51:43 +08:00
56f5d5125b
fix quick exit when double click cli to install/upgrade ( #2521 )
2023-03-17 17:56:41 +08:00
5083174a92
fix goreport for gofmt ( #2523 )
2023-03-17 17:54:14 +08:00
4a278dfd79
improve grpcx ( #2522 )
2023-03-17 17:51:10 +08:00
80d57ed8f9
add postForm with multi data content type support ( #2508 )
2023-03-14 09:57:22 +08:00
b742e222d6
improve command gen pb by adding controller go files generating ( #2518 )
2023-03-14 09:47:42 +08:00
ae86f66545
fix issue #2499 #2515 ( #2517 )
2023-03-13 22:16:57 +08:00
45e4c9e16c
add tag value of in support for api definition that has meta info ( #2450 )
2023-03-13 19:29:30 +08:00
8c07f1a42c
feat: support graceful shutdown ( #2469 ) ( #2475 )
2023-03-13 19:21:56 +08:00
e6c97410ef
fix: cli gen service:BUG #2310 ( #2485 )
2023-03-13 19:17:23 +08:00
b1a55c7a32
improvement for grpcx ( #2510 )
2023-03-13 18:56:19 +08:00
1cd1449085
add package contrib/rpc/grpcx ( #2169 )
2023-03-08 14:12:51 +08:00
55690f3738
improve unit testing cases coverage to 80%+ ( #2480 )
2023-03-07 21:27:23 +08:00
13f6fb1929
fix issue struct attribute converting when has no json name but with omitempty tag ( #2486 )
2023-03-07 21:26:32 +08:00
e8088a6563
improve command gen dao by removing all dao files if clear option is true ( #2502 )
...
* improve command by removing all dao files if clear option is true
* version updates
2023-03-07 19:32:13 +08:00
e8051bad9a
fix issue in empty json name along with omitempty tag in package oai ( #2500 )
2023-03-07 14:17:14 +08:00
d0d41a63a6
robot translator updates ( #2491 )
2023-03-07 11:01:01 +08:00
853b038a47
add issue translation robot ( #2490 )
2023-03-06 09:50:03 +08:00
34946f6105
fix configuration of Namespace for pgsql ( #2481 )
2023-03-01 19:30:40 +08:00
15d88c269d
fix: gredis maxActive config and duplicate connection bug ( #2479 )
2023-02-27 22:08:37 +08:00
cbbfd85eeb
Protect RemoveValue from race condition ( #2472 )
2023-02-23 19:47:57 +08:00
adf90c876f
improve unit testing cases ( #2468 )
2023-02-23 10:07:40 +08:00
b4f76b8448
fix: use keyword(like: group) as table name in sqlite ( #2461 )
2023-02-20 22:03:26 +08:00
ed858ebd4b
Bump golang.org/x/net from 0.1.0 to 0.7.0 in /cmd/gf ( #2460 )
2023-02-20 22:02:31 +08:00
272b9c7afd
README update for cmd/gf ( #2459 )
2023-02-20 22:01:36 +08:00
8dc8dd9756
fix issue #2261 ( #2458 )
2023-02-20 21:57:49 +08:00
a64d1001e2
improve ci by using cache feature of setup-go ( #2463 )
2023-02-20 21:51:54 +08:00
ad737ded3c
fix issue #2447 ( #2448 )
2023-02-15 14:13:32 +08:00
ac6b0c0980
fix issue #2427 ( #2442 )
2023-02-15 09:45:40 +08:00
b69e0ff9f7
fix issue #2338 ( #2444 )
2023-02-14 09:45:29 +08:00
0361f9f7de
fix #2435 ( #2437 )
2023-02-13 19:18:30 +08:00
005668aca8
gdb error should wrap original underlying database error like MySQLError ( #2402 )
2023-02-08 19:38:11 +08:00
013f8b216a
improve Timezone escape for driver dm/mysql ( #2412 )
2023-02-08 19:35:48 +08:00
8ecfa91e5d
comment updates for with function of package gdb ( #2418 )
2023-02-08 19:10:03 +08:00
117fc6eda2
fix issue #2339 ( #2433 )
2023-02-08 19:08:10 +08:00
d66af122c7
fix issue #2331 ( #2432 )
2023-02-08 19:07:05 +08:00
a7467945ca
fix issue #2355 ( #2430 )
2023-02-08 14:17:21 +08:00
81d8aa55cd
fix issue #2371 ( #2429 )
2023-02-08 14:17:11 +08:00
4a6630138d
fix issue 2356 ( #2428 )
2023-02-08 14:17:00 +08:00
3adae3a9aa
fix type of default value in swagger ui for package goai ( #2413 )
2023-02-08 14:16:12 +08:00
21ebf48072
.gitignore updates ( #2426 )
2023-02-07 21:13:20 +08:00
2b90bcfab6
fix issue #2050 : add -t option support for command gf docker to compatable with older version ( #2423 )
2023-02-07 17:41:43 +08:00
5f0641f348
fix issue #2015 ( #2422 )
2023-02-07 14:06:26 +08:00
38c9cac578
fix issue #2011 ( #2421 )
2023-02-07 11:37:39 +08:00
9ba49fa454
fix issue in gf run failed with arguments passed in windows platform ( #2414 )
2023-02-06 20:35:11 +08:00
39fede66e6
add label planned for ci to check issue inactive ( #2408 )
...
add label planned for ci to check issue inactive
2023-01-18 17:04:26 +08:00
d984f1a9d8
add auto go mod tidy after version upgraded for command up ( #2407 )
...
* add cli upgraded supported for command up
* improve unit case for package internal/mutex
* v2.3.1
* add auto after version upgraded for command
Co-authored-by: houseme <housemecn@gmail.com >
2023-01-18 11:28:55 +08:00
28b8efe00c
fix issue 2403 ( #2404 )
2023-01-18 10:17:16 +08:00
7b0fd6de9b
add cli upgraded supported for command up ( #2405 )
...
* add cli upgraded supported for command up
* improve unit case for package internal/mutex
* v2.3.1
Co-authored-by: houseme <housemecn@gmail.com >
2023-01-18 10:12:00 +08:00
c0fa2e3a73
fix issue 2395 ( #2399 )
...
* v2.3.0
* fix #2391
* fix issue #2391
* fix issue #2395
2023-01-17 14:51:19 +08:00
3f6669e2b7
fix issue 2391 ( #2398 )
...
* v2.3.0
* fix #2391
* fix issue #2391
2023-01-16 16:00:18 +08:00
6ff4ed84e5
version v2.3.0 ( #2392 )
...
* v2.3.0
* up
* up
* up
2023-01-11 19:19:41 +08:00
5e72b03b0a
feature/v2.3.0 ( #2296 )
...
* up
* rename function names for package gtcp/gudp; add proxy example for gtcp.Server (#2295 )
* fix router supported for handler of package ghttp; fix json tag name issue when it contains for package goai
* add proxy example for http server
* rename function names for package gtcp/gudp; add proxy example for gtcp.Server
* move TX from struct to interface for package gdb (#2247 )
* move TX from struct to interface for package gdb
* i updates
* up
* up
* fix comment
Co-authored-by: houseme <housemecn@gmail.com >
* move `go-redis` implements `Adapter` from package `gredis` to `contrib/nosql/redis`; add redis string operation functions for package `gredis` (#2240 )
* unify configuration pattern of for package gdb
* version updates
* improve implements `internal/rwmutex` and `internal/mutex`; add `TablesFields` cache implements in `gdb.Core` instead of `contrib/drivers`; add `ClearTableFields` and `ClearCache` functions for `gdb.Core` (#2128 )
* add ClearTableFiels/ClearCache for Core of package gdb
* improve TableFields for contrib/drivers
* fix UT case for contrib/drivers/clickhouse
* remove unecessary attribute state for internal/rwmutex and internal/mutex
* add ClearTableFieldsAll/ClearCacheAll for gdb.Core
* improve clickhouse driver
* improve clickhouse driver
* fix ut
* feat: improve import
Co-authored-by: daguang <daguang830@gmail.com >
Co-authored-by: houseme <housemecn@gmail.com >
* refract builtin rules management mechanism, add `eq/not-eq/gt/gte/lt/lte/before/before-equal/after/after-equal/array/not-regex` rules for for package `gvalid` (#2133 )
* refract builtin rules management for package gvalid
* refract builtin rules management for package gvalid
* refract builtin rules management for package gvalid
* add valiation rules and implements for package gvalid
* UT cases update for package gvalid
* improve error message of fields validation for package gvalid
* up
* add more validation rules for package gvalid
* add validation rule foreach for package gvalid (#2136 )
* add ToSQL/CatchSQL funcions for package gdb (#2137 )
* add ToSQL/CatchSQL funcions for package gdb
* Update gdb_core_underlying.go
* fix ci
Co-authored-by: houseme <housemecn@gmail.com >
* add redis interface for package gredis
* up
* remove `FilteredLink` function for DB and all driver implements and improve details for package gdb (#2142 )
* fix: pgsql DoExec Transaction checks (#2101 )
Co-authored-by: John Guo <john@johng.cn >
* improve package gdb
* up
* up
* up
* up
* up
* add DriverWrapper and DriverWarapperDB for package gdb
* add DriverWrapper and DriverWarapperDB for package gdb
* up
Co-authored-by: HaiLaz <739476267@qq.com >
* add new database driver `dm`
* add drivers dm
* upd go version
* add gf ci yaml
Co-authored-by: Xu <zhenghao.xu>
* move go-redis implements from package gredis to contrib/nosql/redis; add redis string operation functions for package gredis
* improve `contrib/drivers/dm` (#2144 )
* improve contrib/drivers/dm
* format TODO list info
* 1) add config.Name is required
2) The upper layer no longer needs to specify the schema
3) Adjust unit tests
Co-authored-by: Xu <zhenghao.xu>
Co-authored-by: houseme <housemecn@gmail.com >
* move redis adapter related ut case from package gcache/gsession to package contrib/nosql/redis
* up
* up
* up
* up
* up
* improve comment
* add implements of `gcfg.Adapter` using kubernetes configmap (#2145 )
* remove Logger from kubecm.Client
* README updates for package kubecm
* error message update for package gredis
* comment update for package gdb
* Feature/v2.2.0 gredis (#2155 )
* improve package gredis (#2162 )
* improve package gredis
* Update gredis_redis_group_list.go
* fix
* up
Co-authored-by: houseme <housemecn@gmail.com >
* up
* up
* up
* up
* up
* up
* add func Test_GroupScript_Eval
* ut cases for group string
* UT cases update for group script
* mv redis operation implements to contrib/nosql/redis from package gredis
* test: add redis group list unit test (#2248 )
* test: add redis group list unit test
* improve comment
* test: fix redis group list unit test
Co-authored-by: houseme <housemecn@gmail.com >
* up
* add func Test_GroupGeneric_Copy, Test_GroupGeneric_Exists,Test_GroupGeneric_Type,Test_GroupGeneric_Unlink,Test_GroupGeneric_Rename,Test_GroupGeneric_Move,Test_GroupGeneric_Del
* add Redis GroupGeneric UnitTest (#2253 )
add func Test_GroupGeneric_RandomKey,Test_GroupGeneric_DBSize,Test_GroupGeneric_Keys,Test_GroupGeneric_FlushDB,Test_GroupGeneric_FlushAll,Test_GroupGeneric_Expire,Test_GroupGeneric_ExpireAt
* hash test case completed (#2260 )
Co-authored-by: junler <sunjun@bookan.com >
* add Redis GroupGeneric Unit Test part2 (#2258 )
* up
* ci updates
* ci updates
* up
* Feature/contrib redis fsprouts (#2274 )
* Feature/contrib redis starck (#2275 )
* up
* up
* fix `/*` router supported for handler of package ghttp; fix json tag name issue when it contains `,` for package goai; add proxy example for http server (#2294 )
* fix router supported for handler of package ghttp; fix json tag name issue when it contains for package goai
* add proxy example for http server
* fix: update szenius/set-timezone@v1.1 (#2293 )
* add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument (#2299 )
* fix cache issue in Count/Value functions for gdb.Model (#2300 )
* add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument
* fix cache issue in Count/Value functions for gdb.Model
* add more ut case for package gdb
* version updates
* add minus of `start` parameter support for `gstr.Substr`, like the `substr` function in `PHP` (#2297 )
* Make the substr like the substr in PHP
Make the substr like the substr in PHP
* Update gstr_z_unit_test.go
* Update gstr_z_unit_test.go
* Make the SubStrRune like the mb_substr in PHP
Make the SubStrRune like the mb_substr in PHP
* Update gstr_z_unit_test.go
* Update gstr_z_unit_test.go
* Update gins_z_unit_view_test.go
* Update gview_z_unit_test.go
* add ut cases for package gcode (#2307 )
* add ut cases for package gerror (#2304 )
* add ut cases for package gerror
* add ut cases for package gerror
* add ut cases for package gtime (#2303 )
* add ut cases for package gtime
* add ut cases for package gtime
* add ut cases for package gtime
* add ut cases for package glog (#2302 )
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* change result data type of function Count from int to int64 for package gdb (#2298 )
* feat: modify model count value int64
* fix
* fix:modify int64
* fix
* feat: cmd gf prebuild suport oracle (#2312 )
* add ut cases for package g (#2315 )
* add ut cases for package gdebug (#2313 )
* add ut cases for package gdebug
* add ut cases for package gdebug
* add ut cases for package gdebug
Co-authored-by: houseme <housemecn@gmail.com >
* add zookeeper registry support (#2284 )
* add ut cases for package glog part2 (#2317 )
* fix invalid UpdatedAt usage in soft deleting feature for package gdb (#2323 )
* fix issue in failed installing when there's shortcut between file paths for command install (#2326 )
* fix issue in failed installing when has shortcut between file paths for command install
* version updates
* template for command gf updates
* improve lru clearing for package gcache (#2327 )
* add ut cases for package ghttp_middleware and ghttp_request (#2344 )
* add ut cases for package ghttp_middleware
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
* add ut cases for package ghttp_response (#2352 )
* add ut cases for package ghttp_response
* add ut cases for package ghttp_response
* add ut cases for package ghttp_response
* add ut cases for package ghttp_request (#2351 )
* add ut cases for package ghttp_middleware
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request - form
* add ut cases for package ghttp_request - query
* add ut cases for package ghttp_request - request
* add ut cases for package ghttp_request - router
* add ut cases for package gcache (#2341 )
* gTcp Example Function:
1.NewConn 2.NewConnTLS 3.NewConnKeyCrt
* gTcp Example Function:
1.Send
* add example function ExampleConn_Recv and ExampleConn_RecvWithTimeout
* add example function
1. ExampleConn_SendWithTimeout
2. ExampleConn_RecvLine
3. ExampleConn_RecvTill
* add example function
1. ExampleConn_SendRecv
2. ExampleConn_SendRecvWithTimeout
3. ExampleConn_SetDeadline
4. ExampleConn_SetReceiveBufferWait
* add gtcp test function
1. Test_Package_Option_HeadSize4
2. Test_Package_Option_Error
* add gtcp example function
1. ExampleGetFreePorts
2. ExampleSend
3. ExampleSendRecv
4. ExampleSendWithTimeout
5. ExampleSendRecvWithTimeout
6. ExampleMustGetFreePort
* add gtcp example function
1. ExampleSendPkg
2. ExampleSendRecvPkg
3. ExampleSendPkgWithTimeout
4. ExampleSendRecvPkgWithTimeout
* add gtcp test function
1. Test_Pool_Send
2. Test_Pool_Recv
3. Test_Pool_RecvLine
4. Test_Pool_RecvTill
5. Test_Pool_RecvWithTimeout
6. Test_Pool_SendWithTimeout
7. Test_Pool_SendRecvWithTimeout
* fix
* add gtcp example function
1. ExampleGetServer
2. ExampleSetAddress
3. ExampleSetHandler
4. ExampleRun_NilHandle
* exec CI
* exec CI
* exec CI
* modify test server address
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* add example funcion ExampleConn_Recv_Once and fix
* fix
* add some error case in example function
* add some error case in example function
* 1.add example function ExampleNewServerKeyCrt
2.add function SendRecvPkgWithTimeout unit test
* add function Test_Server_NewServerKeyCrt unit test
* revert
* add function Test_Package_Timeout, Test_Package_Option_HeadSize3, Test_Conn_RecvPkgError unit test
* fix
* add example function
1.ExampleClient_Clone
2.ExampleLoadKeyCrt
* add example function
1.ExampleNewNetConnKeyCrt
* fix
* add example function
1.ExampleClient_DeleteBytes
2.ExampleClient_HeadBytes
3.ExampleClient_PatchBytes
4.ExampleClient_ConnectBytes
5.ExampleClient_OptionsBytes
6.ExampleClient_TraceBytes
7.ExampleClient_PutBytes
* add example function
1.ExampleClient_Prefix
2.ExampleClient_Retry
3.ExampleClient_RedirectLimit
* add example function
1.ExampleClient_SetBrowserMode
2.ExampleClient_SetHeader
3.ExampleClient_SetRedirectLimit
* add example function
1.ExampleClient_SetTLSKeyCrt
2.ExampleClient_SetTLSConfig
modify example funcion
1.ExampleClient_SetProxy
2.ExampleClient_Proxy
* add example function
1.ExampleClient_PutContent
2.ExampleClient_DeleteContent
3.ExampleClient_HeadContent
4.ExampleClient_PatchContent
5.ExampleClient_ConnectContent
6.ExampleClient_OptionsContent
7.ExampleClient_TraceContent
8.ExampleClient_RequestContent
* add example function
1.ExampleClient_RawRequest
* add unit function
1.TestGetFreePorts
2.TestNewConn
3.TestNewConnTLS
4.TestNewConnKeyCrt
5.TestConn_SendWithTimeout
* add unit function
1.TestConn_Send
2.TestConn_SendRecv
3.TestConn_SendRecvWithTimeout
* modify
* modify
* add example function
1.TestConn_SetReceiveBufferWait
2.TestNewNetConnKeyCrt
3.TestSend
* add example function
1.TestSendRecv
2.TestSendWithTimeout
* add unit function
1.TestMustGetFreePort
2.TestSendRecvWithTimeout
3.TestSendPkg
* add client recevied server's response content assert
* modify
* modify
* add example function
1.TestSendRecvPkg
2.TestSendPkgWithTimeout
3.TestSendRecvPkgWithTimeout
* add GetAddress() function
add unit funciton
1.TestNewServer
2.TestGetServer
3.TestServer_SetAddress
4.TestServer_SetHandler
5.TestServer_Run
* modify
* modify
* add unit funciton
1.TestLoadKeyCrt
* modify
* delete function fromHex
* add gclient dump unit test
* add example function
1.ExampleClient_Put
2.ExampleClient_Delete
3.ExampleClient_Head
4.ExampleClient_Patch
5.ExampleClient_Connect
6.ExampleClient_Options
7.ExampleClient_Trace
* add example function
1.TestClient_DoRequest
* add example function
1.ExampleClient_PutVar
2.ExampleClient_DeleteVar
3.ExampleClient_HeadVar
4.ExampleClient_PatchVar
5.ExampleClient_ConnectVar
6.ExampleClient_OptionsVar
7.ExampleClient_TraceVar
* modify
* modify
* add CustomProvider function
* modify
* add unit funciton
1.Test_NewConn
2.Test_GetFreePorts
* add unit funciton
1.Test_Server
* garray_normal_any code converage
* garray_normal_int code converage
* garray_normal_str code converage
* garray_sorted_any code converage
* garray_sorted_int code converage
* garray_sorted_str code converage
* glist code converage
* gmap, gmap_hash_any_any_map code converage
* gmap_hash_int_any_map code converage
* gmap_hash_int_any_map code converage
* gmap_hash_int_int_map code converage
* gmap_hash_int_str_map code converage
* gmap_hash_str_any_map code converage
* gmap_hash_str_int_map code converage
* gmap_hash_str_str_map code converage
* gmap_list_map code converage
* gmap_list_map code converage
* revert gf.yml
* add gtest unit test function
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* modify
Co-authored-by: John Guo <john@johng.cn >
* improve ut case for package internal/rwmutex (#2364 )
* fix issue when only one file was uploaded in batch receiver attribute (#2365 )
* fix fixed An error occurred when only one file was uploaded in batches and add unit testing(#2092 )
* fix issue uploading files for ghttp.Server
Co-authored-by: yxh <yxh1103@qq.com >
* fix issue #2334 when accessing static files with cache time (#2366 )
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* fix issue #2334 when accessing static files with cache time
* up
Co-authored-by: 曾洪亮 <hongliang.zeng@i-soft.com.cn >
Co-authored-by: houseme <housemecn@gmail.com >
* fix issue in cycle dumping for g.Dump (#2367 )
* fix issue in cycle dumping for g.Dump
* up
* up
* up
Co-authored-by: houseme <housemecn@gmail.com >
* 由于 clickhouse 的 position的初始值为 1,导致gdb_core_utility.HasField 中对 fieldsArray 初始化出错 (#2346 )
* 由于 clickhouse 的 position的初始值为 1,导致gdb_core_utility.HasField 中对 fieldsArray 初始化出错
* 修复单元测试
* 修复单元测试
* 补充单元测试
* 增加CK防御性代码
Co-authored-by: longl <longlei@dealmap.cloud >
Co-authored-by: houseme <housemecn@gmail.com >
* fix: ghttp server static path config (#2335 )
Co-authored-by: daguang <daguang830@gmail.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: ftl <1139556759@qq.com >
Co-authored-by: HaiLaz <739476267@qq.com >
Co-authored-by: zhonghuaxunGM <50815786+zhonghuaxunGM@users.noreply.github.com >
Co-authored-by: huangqian <huangqian1985@qq.com >
Co-authored-by: junler <827640651@qq.com >
Co-authored-by: junler <sunjun@bookan.com >
Co-authored-by: Starccck <28645972+starccck@users.noreply.github.com >
Co-authored-by: Jinhongyu <30454170+cnjinhy@users.noreply.github.com >
Co-authored-by: YuanXin Hu <huyuanxin1999@outlook.com >
Co-authored-by: yxh <yxh1103@qq.com >
Co-authored-by: 曾洪亮 <hongliang.zeng@i-soft.com.cn >
Co-authored-by: long <48313408+qq375251855@users.noreply.github.com >
Co-authored-by: longl <longlei@dealmap.cloud >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: daguang <daguang830@gmail.com >
Co-authored-by: ftl <1139556759@qq.com >
Co-authored-by: HaiLaz <739476267@qq.com >
Co-authored-by: zhonghuaxunGM <50815786+zhonghuaxunGM@users.noreply.github.com >
Co-authored-by: huangqian <huangqian1985@qq.com >
Co-authored-by: junler <827640651@qq.com >
Co-authored-by: junler <sunjun@bookan.com >
Co-authored-by: Starccck <28645972+starccck@users.noreply.github.com >
Co-authored-by: Jinhongyu <30454170+cnjinhy@users.noreply.github.com >
Co-authored-by: YuanXin Hu <huyuanxin1999@outlook.com >
Co-authored-by: yxh <yxh1103@qq.com >
Co-authored-by: 曾洪亮 <hongliang.zeng@i-soft.com.cn >
Co-authored-by: long <48313408+qq375251855@users.noreply.github.com >
Co-authored-by: longl <longlei@dealmap.cloud >
2023-01-09 14:43:10 +08:00
4bb88027d8
improve function SetTimeZone for package gtime ( #2389 )
...
* improve logging feature, add LevelPrint configuration for glog.Logger; add package internal/instance
* improve command build
* add default logger for panic message printing if no logger set
* up
* fix scheduler when timer triggers in less than one second for package gcron
* up
* improve function SetTimeZone for package gtime
* improve function SetTimeZone for package gtime
* improve function SetTimeZone for package gtime
* up
2023-01-09 14:36:42 +08:00
ae4f14c2e2
add LevelPrint configuration for glog.Logger; add package internal/instance for grouped instance management feature; add default logger for panic message printing if no logger set in gcron.Cron ( #2388 )
...
* improve logging feature, add LevelPrint configuration for glog.Logger; add package internal/instance
* improve command build
* add default logger for panic message printing if no logger set
* up
* fix scheduler when timer triggers in less than one second for package gcron
* up
2023-01-06 14:15:30 +08:00
5a8b33fa09
fix gf.yaml ( #2385 )
...
* fix gf.yaml
* up
2023-01-03 14:33:41 +08:00
5884a0e05f
fix issue #2381 ( #2382 )
...
* fix issue #2381
* up
* up
2023-01-03 11:00:23 +08:00
31e44062a8
revert from int64 to int for returning value of Count ( #2378 )
...
* revert from int64 to int for returning value of Count
* up
* up
* up
2022-12-30 16:54:43 +08:00
87cb1c9b8e
add security tag support for openapi ( #2377 )
...
* support openapi path security
* add security path test case
* go format
* fix test case
* add doc for security
2022-12-29 20:56:20 +08:00
0266d24d0a
fix Unknown setting charset for clickhouse driver ( #2375 )
2022-12-27 14:46:15 +08:00
0876e00eb8
fix issue in NewIntArrayRange function for package garray ( #2374 )
2022-12-26 19:28:01 +08:00
85c4794ceb
fix BuildParams with urlEncode when len(v) <= 6 ( #2308 )
...
* fix: check urlEncode when len(v) <= 6
* fix BuildParams with urlEncode when len(v) <= 6
* fix BuildParams with urlEncode when len(v) <= 6
Co-authored-by: Prime Xiao <primexiao.dev@gmail.com >
2022-12-23 10:33:28 +08:00
e007bf35b2
parseConfigNodeLink support Chinese database name #2231 ( #2238 )
2022-12-22 17:33:51 +08:00
74e968e93b
fix: ghttp server static path config ( #2335 )
2022-12-22 17:21:33 +08:00
18507fb836
由于 clickhouse 的 position的初始值为 1,导致gdb_core_utility.HasField 中对 fieldsArray 初始化出错 ( #2346 )
...
* 由于 clickhouse 的 position的初始值为 1,导致gdb_core_utility.HasField 中对 fieldsArray 初始化出错
* 修复单元测试
* 修复单元测试
* 补充单元测试
* 增加CK防御性代码
Co-authored-by: longl <longlei@dealmap.cloud >
Co-authored-by: houseme <housemecn@gmail.com >
2022-12-22 17:00:08 +08:00
3b245837b9
fix issue in cycle dumping for g.Dump ( #2367 )
...
* fix issue in cycle dumping for g.Dump
* up
* up
* up
Co-authored-by: houseme <housemecn@gmail.com >
2022-12-22 14:43:02 +08:00
a853984f52
fix issue #2334 when accessing static files with cache time ( #2366 )
...
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:
Verification method:
curl 'http://127.0.0.1:8000/ ' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed
* fix issue #2334 when accessing static files with cache time
* up
Co-authored-by: 曾洪亮 <hongliang.zeng@i-soft.com.cn >
Co-authored-by: houseme <housemecn@gmail.com >
2022-12-22 10:25:30 +08:00
00c544ee99
fix issue when only one file was uploaded in batch receiver attribute ( #2365 )
...
* fix fixed An error occurred when only one file was uploaded in batches and add unit testing(#2092 )
* fix issue uploading files for ghttp.Server
Co-authored-by: yxh <yxh1103@qq.com >
2022-12-21 10:38:19 +08:00
e7b9e41a5e
improve ut case for package internal/rwmutex ( #2364 )
2022-12-20 15:56:29 +08:00
e254b4f3c0
add ut cases for package gcache ( #2341 )
...
* gTcp Example Function:
1.NewConn 2.NewConnTLS 3.NewConnKeyCrt
* gTcp Example Function:
1.Send
* add example function ExampleConn_Recv and ExampleConn_RecvWithTimeout
* add example function
1. ExampleConn_SendWithTimeout
2. ExampleConn_RecvLine
3. ExampleConn_RecvTill
* add example function
1. ExampleConn_SendRecv
2. ExampleConn_SendRecvWithTimeout
3. ExampleConn_SetDeadline
4. ExampleConn_SetReceiveBufferWait
* add gtcp test function
1. Test_Package_Option_HeadSize4
2. Test_Package_Option_Error
* add gtcp example function
1. ExampleGetFreePorts
2. ExampleSend
3. ExampleSendRecv
4. ExampleSendWithTimeout
5. ExampleSendRecvWithTimeout
6. ExampleMustGetFreePort
* add gtcp example function
1. ExampleSendPkg
2. ExampleSendRecvPkg
3. ExampleSendPkgWithTimeout
4. ExampleSendRecvPkgWithTimeout
* add gtcp test function
1. Test_Pool_Send
2. Test_Pool_Recv
3. Test_Pool_RecvLine
4. Test_Pool_RecvTill
5. Test_Pool_RecvWithTimeout
6. Test_Pool_SendWithTimeout
7. Test_Pool_SendRecvWithTimeout
* fix
* add gtcp example function
1. ExampleGetServer
2. ExampleSetAddress
3. ExampleSetHandler
4. ExampleRun_NilHandle
* exec CI
* exec CI
* exec CI
* modify test server address
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* modify and exec CI
* add example funcion ExampleConn_Recv_Once and fix
* fix
* add some error case in example function
* add some error case in example function
* 1.add example function ExampleNewServerKeyCrt
2.add function SendRecvPkgWithTimeout unit test
* add function Test_Server_NewServerKeyCrt unit test
* revert
* add function Test_Package_Timeout, Test_Package_Option_HeadSize3, Test_Conn_RecvPkgError unit test
* fix
* add example function
1.ExampleClient_Clone
2.ExampleLoadKeyCrt
* add example function
1.ExampleNewNetConnKeyCrt
* fix
* add example function
1.ExampleClient_DeleteBytes
2.ExampleClient_HeadBytes
3.ExampleClient_PatchBytes
4.ExampleClient_ConnectBytes
5.ExampleClient_OptionsBytes
6.ExampleClient_TraceBytes
7.ExampleClient_PutBytes
* add example function
1.ExampleClient_Prefix
2.ExampleClient_Retry
3.ExampleClient_RedirectLimit
* add example function
1.ExampleClient_SetBrowserMode
2.ExampleClient_SetHeader
3.ExampleClient_SetRedirectLimit
* add example function
1.ExampleClient_SetTLSKeyCrt
2.ExampleClient_SetTLSConfig
modify example funcion
1.ExampleClient_SetProxy
2.ExampleClient_Proxy
* add example function
1.ExampleClient_PutContent
2.ExampleClient_DeleteContent
3.ExampleClient_HeadContent
4.ExampleClient_PatchContent
5.ExampleClient_ConnectContent
6.ExampleClient_OptionsContent
7.ExampleClient_TraceContent
8.ExampleClient_RequestContent
* add example function
1.ExampleClient_RawRequest
* add unit function
1.TestGetFreePorts
2.TestNewConn
3.TestNewConnTLS
4.TestNewConnKeyCrt
5.TestConn_SendWithTimeout
* add unit function
1.TestConn_Send
2.TestConn_SendRecv
3.TestConn_SendRecvWithTimeout
* modify
* modify
* add example function
1.TestConn_SetReceiveBufferWait
2.TestNewNetConnKeyCrt
3.TestSend
* add example function
1.TestSendRecv
2.TestSendWithTimeout
* add unit function
1.TestMustGetFreePort
2.TestSendRecvWithTimeout
3.TestSendPkg
* add client recevied server's response content assert
* modify
* modify
* add example function
1.TestSendRecvPkg
2.TestSendPkgWithTimeout
3.TestSendRecvPkgWithTimeout
* add GetAddress() function
add unit funciton
1.TestNewServer
2.TestGetServer
3.TestServer_SetAddress
4.TestServer_SetHandler
5.TestServer_Run
* modify
* modify
* add unit funciton
1.TestLoadKeyCrt
* modify
* delete function fromHex
* add gclient dump unit test
* add example function
1.ExampleClient_Put
2.ExampleClient_Delete
3.ExampleClient_Head
4.ExampleClient_Patch
5.ExampleClient_Connect
6.ExampleClient_Options
7.ExampleClient_Trace
* add example function
1.TestClient_DoRequest
* add example function
1.ExampleClient_PutVar
2.ExampleClient_DeleteVar
3.ExampleClient_HeadVar
4.ExampleClient_PatchVar
5.ExampleClient_ConnectVar
6.ExampleClient_OptionsVar
7.ExampleClient_TraceVar
* modify
* modify
* add CustomProvider function
* modify
* add unit funciton
1.Test_NewConn
2.Test_GetFreePorts
* add unit funciton
1.Test_Server
* garray_normal_any code converage
* garray_normal_int code converage
* garray_normal_str code converage
* garray_sorted_any code converage
* garray_sorted_int code converage
* garray_sorted_str code converage
* glist code converage
* gmap, gmap_hash_any_any_map code converage
* gmap_hash_int_any_map code converage
* gmap_hash_int_any_map code converage
* gmap_hash_int_int_map code converage
* gmap_hash_int_str_map code converage
* gmap_hash_str_any_map code converage
* gmap_hash_str_int_map code converage
* gmap_hash_str_str_map code converage
* gmap_list_map code converage
* gmap_list_map code converage
* revert gf.yml
* add gtest unit test function
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* add ut cases for package gcache
* modify
Co-authored-by: John Guo <john@johng.cn >
2022-12-20 14:49:31 +08:00
b0c9c68c9c
add ut cases for package ghttp_request ( #2351 )
...
* add ut cases for package ghttp_middleware
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request - form
* add ut cases for package ghttp_request - query
* add ut cases for package ghttp_request - request
* add ut cases for package ghttp_request - router
2022-12-12 10:28:58 +08:00
1030434ce6
add ut cases for package ghttp_response ( #2352 )
...
* add ut cases for package ghttp_response
* add ut cases for package ghttp_response
* add ut cases for package ghttp_response
2022-12-12 10:28:35 +08:00
2f08c4b00f
add ut cases for package ghttp_middleware and ghttp_request ( #2344 )
...
* add ut cases for package ghttp_middleware
* add ut cases for package ghttp_request
* add ut cases for package ghttp_request
2022-12-07 20:02:46 +08:00
4553f90a83
improve lru clearing for package gcache ( #2327 )
2022-11-25 10:45:56 +08:00
ef7fec7e24
fix issue in failed installing when there's shortcut between file paths for command install ( #2326 )
...
* fix issue in failed installing when has shortcut between file paths for command install
* version updates
* template for command gf updates
2022-11-25 10:34:00 +08:00
0a76b9c61b
fix invalid UpdatedAt usage in soft deleting feature for package gdb ( #2323 )
2022-11-24 21:23:15 +08:00
fbeb8f81ac
add ut cases for package glog part2 ( #2317 )
2022-11-21 10:32:08 +08:00
62af4f1c2c
add zookeeper registry support ( #2284 )
2022-11-18 14:07:17 +08:00
ed43efe4fb
add ut cases for package gdebug ( #2313 )
...
* add ut cases for package gdebug
* add ut cases for package gdebug
* add ut cases for package gdebug
Co-authored-by: houseme <housemecn@gmail.com >
2022-11-18 14:05:39 +08:00
1cb42c32e3
add ut cases for package g ( #2315 )
2022-11-18 14:05:16 +08:00
628b454ebc
feat: cmd gf prebuild suport oracle ( #2312 )
2022-11-17 21:07:12 +08:00
38a858d7d3
change result data type of function Count from int to int64 for package gdb ( #2298 )
...
* feat: modify model count value int64
* fix
* fix:modify int64
* fix
2022-11-17 19:47:17 +08:00
83b92ddfa4
add ut cases for package glog ( #2302 )
...
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
* add ut cases for package glog
2022-11-17 19:44:48 +08:00
7cd415b1df
add ut cases for package gtime ( #2303 )
...
* add ut cases for package gtime
* add ut cases for package gtime
* add ut cases for package gtime
2022-11-17 19:44:20 +08:00
d2113b4d23
add ut cases for package gerror ( #2304 )
...
* add ut cases for package gerror
* add ut cases for package gerror
2022-11-17 19:43:54 +08:00
d445987f95
add ut cases for package gcode ( #2307 )
2022-11-17 19:43:04 +08:00
14d2d747f6
add minus of start parameter support for gstr.Substr, like the substr function in PHP ( #2297 )
...
* Make the substr like the substr in PHP
Make the substr like the substr in PHP
* Update gstr_z_unit_test.go
* Update gstr_z_unit_test.go
* Make the SubStrRune like the mb_substr in PHP
Make the SubStrRune like the mb_substr in PHP
* Update gstr_z_unit_test.go
* Update gstr_z_unit_test.go
* Update gins_z_unit_view_test.go
* Update gview_z_unit_test.go
2022-11-16 10:10:59 +08:00
73dc8c9c4b
fix cache issue in Count/Value functions for gdb.Model ( #2300 )
...
* add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument
* fix cache issue in Count/Value functions for gdb.Model
* add more ut case for package gdb
* version updates
2022-11-16 10:04:49 +08:00
576f1a798c
add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument ( #2299 )
2022-11-15 17:05:34 +08:00
78fa2d2e3b
fix: update szenius/set-timezone@v1.1 ( #2293 )
2022-11-14 19:58:17 +08:00
9402cc8c6a
fix /* router supported for handler of package ghttp; fix json tag name issue when it contains , for package goai; add proxy example for http server ( #2294 )
...
* fix router supported for handler of package ghttp; fix json tag name issue when it contains for package goai
* add proxy example for http server
2022-11-14 19:57:39 +08:00
7d1a508ea9
improve ut case for package gcache/gpool ( #2290 )
...
* improve ut case for package gcache/gpool
* up
2022-11-12 10:49:48 +08:00
b84034b667
fix: gcache MustGetOrSetFunc error ( #2291 )
2022-11-10 20:34:48 +08:00
84b7cbd992
ci: action update ( #2289 )
2022-11-10 20:26:57 +08:00
bc8ca912ce
fix: gcron check if the predefined patterns fail ( #2288 )
2022-11-10 19:59:09 +08:00
b61baa1efc
add ut cases for package gconv part2 ( #2282 )
2022-11-10 19:58:03 +08:00
c4a5bc8584
style(test): Unify the indentation format of SQL strings in clickhouse_test ( #2277 )
...
style(test): Unify the indentation format of SQL strings
2022-11-10 19:57:15 +08:00
8c71d579b5
add command fix and up ( #2280 )
2022-11-10 19:56:12 +08:00
2e8d8f63ff
fix IsSubDomain method error ( #2283 )
...
Co-authored-by: weiwei3 <weiwei3@37.com >
2022-11-10 19:47:43 +08:00
91b94878d3
fix used schema not change in nested transaction when used different schemas ( #2279 )
...
* fix used schema not change in nested transaction between different schemas
* up
Co-authored-by: houseme <housemecn@gmail.com >
2022-11-10 09:55:08 +08:00
b000aa3dfe
add supervisor for package grpool ( #2252 )
...
* add supervisor for package grpool
* up
2022-11-08 19:00:16 +08:00
582c6eaef9
gtest model unit test ( #2267 )
2022-11-07 17:56:33 +08:00
4f4109cdb6
fix typo for comments ( #2268 )
...
* Modify comment syntax error
* Modify comment syntax error
2022-11-07 17:55:49 +08:00
9f12673631
add ut cases for package gconv ( #2272 )
...
* improve gconv.go code coverage
* improve gconv_convert.go code coverage
* improve gconv_float.go code coverage
* improve gconv_map.go code coverage
* improve gconv_maps.go code coverage
* improve gconv_maptomap.go code coverage
* improve gconv_maptomaps.go code coverage
2022-11-07 17:53:51 +08:00
d37b75442d
feat: modify sql count value int64 ( #2266 )
2022-11-07 17:52:25 +08:00
ee58255418
move common used tag from packages to package gtag for maintainability ( #2256 )
...
* move common used tag from packages to package gtag for maintainability
* move common used tag from packages to package gtag for maintainability
Co-authored-by: houseme <housemecn@gmail.com >
2022-11-07 17:51:37 +08:00
033ba588c9
fix redis ci yaml ( #2269 )
2022-11-05 10:23:52 +08:00
60d8283971
fix router parameters handling by auto url decoding ( #2262 )
...
improve router parameters handling by auto url decoding
2022-11-04 15:03:27 +08:00
ad90bc2809
version.go updates ( #2259 )
2022-11-04 11:33:31 +08:00
a1b9eca7b6
fix issue #2244 ( #2257 )
...
* fix issue #2244
* ut update for package gtime
* golangci updates
2022-11-03 21:17:28 +08:00
c4a5b8ca94
fix issue 1915 and repeated link instance key for package gdb ( #2250 )
...
* fix issue #1915
* fix issue in repeated link instance key
* add configuration item Namespace for package gdb
* up
* up
* fix: pgsql list table names (#2255 )
Co-authored-by: Gin <qinyuguang@gmail.com >
2022-11-03 20:22:36 +08:00
ab79134309
add schema name in debug logging content; add master-slave ut case for package gdb ( #2249 )
...
* add schema name in debug logging content; add master-slave ut case for package gdb
* add schema name in debug logging content; add master-slave ut case for package gdb
2022-11-02 21:55:58 +08:00
63c3e8396b
attach and export real handler for request ( #2220 )
...
* attach and export real handler for request
* add note
* rename HandlerParsedItem to HandlerItemParsed
Co-authored-by: John Guo <john@johng.cn >
2022-11-01 20:17:59 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
8e0e87877a
feat: add gcfg.Adapter implements using nacos service ( #2232 )
...
* feat: add `gcfg.Adapter` implements using nacos service
* Update gf.yml
* Update gf.yml
Co-authored-by: John Guo <john@johng.cn >
2022-10-26 18:45:35 +08:00
425b31c6fd
improve nil receiver handling for package gtime ( #2226 )
...
* improve nil receiver handling for package gtime
* CI updates
* CI updates
2022-10-26 18:37:40 +08:00
4da469325d
fix gen dao oracle entity bug ( #2219 )
...
Co-authored-by: John Guo <john@johng.cn >
2022-10-26 18:37:06 +08:00
33fdde6afd
opt: parameter verification of optimized handler methods ( #2224 )
2022-10-20 19:36:01 +08:00
ee6103418b
auto creating error with code in ghttp.MiddlewareHandlerResponse when there's no 200 http status code ( #2223 )
2022-10-20 15:50:17 +08:00
038548c188
v2.2.1 ( #2222 )
2022-10-18 20:32:28 +08:00
ce8b536fca
Parse database empty json field to empty object( fix issue 2105 ) ( #2213 )
...
* Parse database empty json field to empty object( fix issue 2105 )
* fix issue #2105
Co-authored-by: Xu <zhenghao.xu>
Co-authored-by: John Guo <john@johng.cn >
2022-10-18 19:13:55 +08:00
8e5a03f6c9
add Ptr* functions for package gconv ( #2206 )
...
* add Ptr* functions for package gconv
* delete binary file
* revert changes for file gconv.go
Co-authored-by: houseme <housemecn@gmail.com >
2022-10-18 19:13:14 +08:00
1c5fd1a1f7
improve ut cases for package contrib/drivers/mysql ( #2216 )
...
* improve ut cases for package contrib/drivers/mysql
* improve logging for database Open
2022-10-17 15:43:22 +08:00
2598745e50
fix issue #1971 ( #2203 )
...
Co-authored-by: houseme <housemecn@gmail.com >
2022-10-14 10:10:27 +08:00
e756f284be
Add test for clickhouse #1815 ( #2200 )
2022-10-13 20:34:44 +08:00
c6a02b850d
fix issue #1934 ( #2193 )
2022-10-13 19:13:10 +08:00
55e8dbe9fd
remove repeated error stack file lines among stacks for package gerror ( #2199 )
...
* remove repeated error stack file lines among stacks for package gerror
* fix nil pointer error for package gerror
2022-10-13 19:12:01 +08:00
5efa5ebd2f
fix issue #1946 ( #2194 )
...
* fix issue #1946
* fix issue #1946
2022-10-12 20:31:03 +08:00
4ebe4233fc
fix issue of OmitEmptyWhere in Builder for package gdb ( #2195 )
2022-10-12 20:30:47 +08:00
35623b5abe
fix: modify Polaris config readme.md ( #2186 )
...
* fix: modify polaris config readme.md
* modify readme.md ,add License
* feat: add License
2022-10-11 19:27:26 +08:00
b617d399b6
fix info content when listens on port :0 for ghttp.Server ( #2191 )
2022-10-11 19:20:39 +08:00
b96b5c3f7c
fix: pgsql driver check local type error ( #2192 )
2022-10-11 19:20:16 +08:00
847f016cc9
new version v2.2.0 ( #2185 )
2022-10-10 20:15:17 +08:00
c613dc8c5c
feat: temporarily disable the unit testing of the Polaris configuration center ( #2183 )
...
* feat: temporarily annotate the unit test of Polaris configuration Center
* fix: remove
2022-10-09 21:42:32 +08:00
182a393050
package comments and readme update ( #2182 )
2022-10-09 21:23:55 +08:00
6cb91021cf
feat: create polaris config ( #2170 )
...
* feat: create polaris config
* feat: improve code
* feat: modify config file path
Co-authored-by: John Guo <john@johng.cn >
2022-10-09 19:20:33 +08:00
2be9bb970b
add function ZipPathContent for package gcompress ( #2179 )
...
add function ZipPathContent for package gcompress
2022-10-09 19:19:10 +08:00
ea396a3925
feat: improve glog for polaris register ( #2178 )
...
feat: improve glog
2022-10-09 09:10:02 +08:00
b1611fee1b
improve port listening for ghttp.Server ( #2175 )
...
* version updates
* fix issue #2172
* improve port listening for ghttp.Server
* UT cases update
* UT cases update
* add GetListenedPort/GetListenedAddress for gtcp.Server
* UT cases update for package gudp
* up
2022-10-08 21:45:21 +08:00
dba903c13b
add WithUUID for package gtrace ( #2176 )
...
* add WithUUID for package gtrace
* feat: improve import
Co-authored-by: houseme <housemecn@gmail.com >
2022-10-08 21:44:42 +08:00
7cb5fbe684
fix issue #1965 ( #2177 )
2022-10-08 21:42:30 +08:00
d7ae5624c8
fix issue #1965 ( #2174 )
...
Co-authored-by: houseme <housemecn@gmail.com >
2022-10-08 19:36:05 +08:00
f1455ad37a
fix issue #2172 ( #2173 )
...
* version updates
* fix issue #2172
2022-10-08 11:46:38 +08:00
127e8af6a6
add gcfg.Adapter implements using apollo service ( #2165 )
...
* version updates
* up
* add watch feature for package kubecm
* feat: support apollo as Adapter (#2143 )
* feat: support apollo as Adapter
* feat: support apollo as Adapter
* feat: support apollo as Adapter
* feat: test apollo Adapter
* feat: test apollo Adapter
Co-authored-by: hongyihui <hongyihui@lixiang.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: John Guo <john@johng.cn >
* add gcfg.Adapter implements using apollo service
* ci yaml update for apollo
Co-authored-by: hong0220 <hong0220@users.noreply.github.com >
Co-authored-by: hongyihui <hongyihui@lixiang.com >
Co-authored-by: houseme <housemecn@gmail.com >
2022-09-30 18:19:52 +08:00
d9be1d0b52
add watch feature for package kubecm ( #2164 )
...
* version updates
* up
* add watch feature for package kubecm
2022-09-30 17:36:40 +08:00
6cd84e8276
fix configuration management for package gdb ( #2163 )
2022-09-30 15:41:51 +08:00
ceaeceadd9
add local db configuration support for package gdb ( #2161 )
...
* version updates
* add local db configuration support for package gdb
* add local db configuration support for package gdb
* add local db configuration support for package gdb
2022-09-29 11:58:03 +08:00
cd5bf7c504
Feature/driver-dm fix something is invalid in dm ( #2158 )
...
* fix core.hasfield error index out of range & fix GroupConcat is invalid in dm
* add unit test
Co-authored-by: Xu <zhenghao.xu>
2022-09-28 10:02:48 +08:00
66aa0c7050
add switch of brief stack for package gerror ( #2153 )
2022-09-27 10:11:33 +08:00
141ca62c6d
feature/v2.2.0 ( #2154 )
2022-09-26 22:11:13 +08:00
9dc97f4b0d
fix issue in init context for package gctx ( #2138 )
...
* fix issue in init context for package gctx
* improve package gtest
2022-09-23 20:50:48 +08:00
714bda3e0f
remove noisy internal logging content of package gcron ( #2141 )
2022-09-23 20:50:25 +08:00
2b4598f65b
fix: pgsql DoExec Transaction checks ( #2101 )
...
Co-authored-by: John Guo <john@johng.cn >
2022-09-20 20:29:42 +08:00
5e9ef8ada4
fix issue incorrect struct name match pattern for command gen service ( #2125 )
...
* project template update for command init
* improve command , add extra option [H[2J
* add [H[2J option for command
* up
2022-09-15 14:44:24 +08:00
cf7c07cc34
improve and add clear option for command gen dao/service ( #2123 )
...
* project template update for command init
* improve command , add extra option [H[2J
* add [H[2J option for command
2022-09-14 21:01:57 +08:00
508062f8dc
fix issue bot :ignore issue which without labels ( #2077 )
...
Co-authored-by: John Guo <john@johng.cn >
2022-09-14 15:44:54 +08:00
e5c63c7e16
project template update for command init ( #2117 )
2022-09-11 20:02:28 +08:00
7a11f00eb4
TplTableNameCamelLowerCase remove space ( #2109 )
...
Co-authored-by: zengjia <zengjia2@37.com >
Co-authored-by: houseme <housemecn@gmail.com >
2022-09-11 20:02:07 +08:00
faf09c586c
add GzipPathWriter for package gcompress ( #2116 )
...
* add GzipPathWriter for package gcompress
* UT case updates for package package gclient
2022-09-08 17:32:21 +08:00
c866b5005f
fix error message for package gtrace ( #2103 )
2022-08-31 19:53:21 +08:00
a0619f7ff0
remove uint repeat conversion ( #2096 )
...
Co-authored-by: houseme <housemecn@gmail.com >
2022-08-26 15:45:41 +08:00
37aee19bfa
new release v2.1.4 ( #2095 )
...
v2.1.4
2022-08-26 15:05:45 +08:00
27609d8da8
fix issue #1921 ( #2091 )
...
* CI updates
* fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service
* improve logging content printing for internal log
* fix issue #1921
2022-08-26 14:30:49 +08:00
c083b333d8
fix field type check for package gdb ( #2086 )
...
* CI updates
* fix field type check for package gdb
2022-08-26 14:30:33 +08:00
ee376883d1
improve logging content printing for internal log ( #2090 )
...
* CI updates
* fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service
* improve logging content printing for internal log
2022-08-26 14:30:12 +08:00
98169784b1
fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service ( #2089 )
...
* CI updates
* fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service
2022-08-24 21:20:17 +08:00
9d1c6f2daa
v2.1.3 release ( #2084 )
2022-08-22 14:40:36 +08:00
25d4ba320a
improve command init: add go mod tidy for init project ( #2083 )
...
* CI updates
* improve command init
2022-08-22 14:31:35 +08:00
3988a7ff6b
add more UT cases for package gview ( #2072 )
...
* CI updates
* add more UT cases for package gview
2022-08-18 21:06:20 +08:00
26e3c7aeb8
fix issue 1914 ( #2075 )
...
* CI updates
* fix issue #1914
2022-08-18 21:05:58 +08:00
eff46bd1db
fix issue #2047 ( #2069 )
2022-08-16 20:46:22 +08:00
7a3176ea77
Fix name of issue CI ( #2071 )
...
CI updates
2022-08-16 20:41:54 +08:00
a656ad0941
add issue bot support ( #2065 ) ( #2066 )
2022-08-15 21:52:33 +08:00
299573dd19
fixed inconsistent results when converting float64(NaN) to int/uint on multiple platforms ( #2064 )
2022-08-15 21:51:34 +08:00
43b84f4044
fix clickhouse in function TableFields when configuration using link ( #2063 )
2022-08-15 20:53:02 +08:00
897d6d9ad0
fix gctx init slice bounds out of range on ios platform ( #2062 )
2022-08-15 20:40:17 +08:00
e4c8cfc16b
add interface DB.CheckLocalTypeForField for package gdb ( #2059 )
2022-08-11 21:47:35 +08:00
95888e0b77
add last insert id support for pgsql ( #1994 )
2022-08-09 19:45:05 +08:00
4ded89d453
improve gdb.CheckValueForLocalType for pgsql ( #2040 )
2022-08-08 19:56:06 +08:00
82a3391937
fix precision lost of int64 for package gcfg ( #2044 )
...
fix: gcfg lose precision
Co-authored-by: qinyuguang <qinyuguang@meican.com >
2022-08-03 21:50:17 +08:00
f580b7a488
improve header printing in json format for package glog; add golang v1.18 support for ci workflow ( #2037 )
2022-07-29 19:06:22 +08:00
9df0a9da0a
fix issue #1648 ( #2033 )
2022-07-28 10:11:15 +08:00
6172862061
add MiddlewareJsonBody, improve error response handling for package ghttp ( #2032 )
2022-07-27 19:52:02 +08:00
1ae037f515
Update goai_path.go ( #2029 )
2022-07-26 22:48:40 +08:00
6f7cd96a7f
feature: gen dao from tpl file path ( #2021 )
2022-07-25 20:55:48 +08:00
e00d3ff7ff
fix issue in gstr.Nl2Br ( #2028 )
2022-07-25 20:54:42 +08:00
390b936153
fix gf-cli command 'gen dao' help infomation ( #2022 )
2022-07-25 19:43:47 +08:00
863bea1ad1
improve field type check from db to golang ( #2023 )
2022-07-22 16:44:24 +08:00
b7794a8783
use method name as its command name if no name defined in Meta of input struct for package gcmd ( #2019 )
2022-07-19 16:30:00 +08:00
bb3c51c6cc
add interrupt for concurrent ci workflows( #2020 )
2022-07-18 22:24:22 +08:00
c3c82cebd5
Feature/ci cache ( #2010 )
2022-07-18 16:02:21 +08:00
5d51e9fa2c
improve package gerror, add HasCode/HasError function for package gerror ( #2006 )
2022-07-15 10:49:04 +08:00
2c70bb6a00
ci updates
2022-07-14 20:54:00 +08:00
98b2e8ab18
improve panic...recover of exit feature for package ghttp/gtimer/gfsnotify ( #2000 )
2022-07-13 20:20:38 +08:00
675ae9bade
fix concurrent safety for package gdb ( #1998 )
2022-07-12 21:26:18 +08:00
3e7e8ba6f2
fix(gdb): panic when concurrent db config map read and write. ( #1997 )
2022-07-12 19:31:22 +08:00
f1766bdbdc
add init ctx feature ( #1995 )
2022-07-12 19:27:42 +08:00
e3665cedaf
new version v2.1.2 ( #1993 )
2022-07-12 14:08:19 +08:00
dd7caea910
fix UT issue for package gcron ( #1992 )
2022-07-12 09:55:46 +08:00
8ed57c6468
Improve the code coverage of the gtype module ( #1975 )
2022-07-11 21:29:32 +08:00
0e6becc36d
Improve the code coverage of the gvar module ( #1982 )
2022-07-11 19:35:31 +08:00
e38c455252
Improve the code coverage of the gpool, gqueue, gring module ( #1987 )
2022-07-11 19:34:40 +08:00
4c1cf73005
Improve the code coverage of the gutil, grand module ( #1989 )
2022-07-11 19:33:59 +08:00
384fb3c4d5
fix go.sum of package contrib/drivers/pgsql ( #1980 )
2022-07-07 21:52:21 +08:00
afb90b0af3
Feature/pgsql add pgsql unit test ( #1853 ) ( #1973 )
2022-07-07 21:42:20 +08:00
1530ffc926
Improve the code coverage of the gset module ( #1977 )
2022-07-07 21:28:23 +08:00
f876a56d2a
some improves for ci yaml and package cmd/gf, database/gdb ( #1972 )
2022-07-07 21:16:26 +08:00
d26eadf5be
gfcli: fix imports parse and update gofmt ( #1979 )
2022-07-07 20:57:20 +08:00
13fc0cb9eb
feat: pgsql 字段类型 支持 数组类型 ( #1881 )
2022-07-06 21:06:20 +08:00
59b3f6e962
improve list tables for pgsql ( #1790 )
2022-07-06 20:05:12 +08:00
80442efe94
redis add sentinel slaveOnly filed ( #1948 )
2022-07-06 19:54:36 +08:00
ab929e465b
update comment for ghttp.Request ( #1968 )
2022-07-06 19:48:43 +08:00
047c90466d
improve UT for package gcron ( #1966 )
2022-07-04 21:18:20 +08:00
40e6b2b0f1
fix gf run custom arguments and gf gen dao specify config file path ( #1879 )
2022-07-04 21:01:55 +08:00
9159f00014
Fix goai repeat param ( #1916 )
2022-07-04 20:40:28 +08:00
59a9484970
gf gen service supports the generation of service files in the specified naming format ( #1953 )
2022-07-04 20:36:58 +08:00
8a853b1bb7
add file export ( #1959 )
2022-07-04 20:17:00 +08:00
2bcd6c4771
add full week/month name support for pattern, add seconds fix feature in some delay seconds for package gcron ( #1960 )
2022-07-01 09:53:01 +08:00
1acc1b8230
improve DeepCopy feature for bunch of components, especially the container and gtime ( #1956 )
2022-06-29 14:58:27 +08:00
2c169e2330
improve package glog; fix issue in package gtrace ( #1952 )
2022-06-28 15:47:16 +08:00
f57d71b6fa
add cross building support for sqlite in command gen dao ( #1944 )
2022-06-27 11:09:55 +08:00
796bc008f8
improve configuration parsing for command gen dao ( #1938 )
2022-06-24 18:03:05 +08:00
d7faae0531
add gstr.IsGNUVersion ( #1937 )
2022-06-24 16:54:24 +08:00
f0511592b5
github.com/glebarez/go-sqlite ( #1932 )
2022-06-24 16:15:42 +08:00
68efab79ef
improve command gen service
2022-06-24 15:35:16 +08:00
1ede8c77ba
version updates
2022-06-24 15:21:36 +08:00
48f95d0009
fix issue in Response.WriteJson/Xml functions
2022-06-24 15:21:10 +08:00
0bb57b8989
go.sum update
2022-06-24 15:16:46 +08:00
0503c17867
feat/gfcli: replace gofmt&goimports with tools/imports ( #1935 )
2022-06-24 14:15:20 +08:00
19779cd342
Fix multiple gdb-group overrides ( #1890 )
...
Co-authored-by: longl <longlei@dealmap.cloud >
2022-06-23 21:30:29 +08:00
141f3512a9
fix glog bug ( #1844 )
2022-06-23 21:05:12 +08:00
3b9e5c71bf
version updates
2022-06-21 21:52:54 +08:00
2bcee014f7
add tracing feature for package gproc ( #1923 )
2022-06-21 21:46:12 +08:00
f0568b4e22
Merge branch 'develop'
2022-06-21 19:08:36 +08:00
8670f29c4e
update project templates and improve command init for cli
2022-06-21 18:08:11 +08:00
33a528af76
fix issue #1913
2022-06-20 22:03:19 +08:00
52056644d4
add context parameter ( #1919 )
2022-06-20 20:34:59 +08:00
3ae23df4b3
Improve the code coverage of the gmap module ( #1910 )
2022-06-20 19:05:47 +08:00
1b327b8abd
improve database configuration parsing for package gins/gdb
2022-06-20 12:07:51 +08:00
bb5cd3e224
fix database configuration parsing for package gins
2022-06-20 11:14:13 +08:00
1e8237446e
add tracing logging content if trace id is available in context for package gcmd
2022-06-17 17:42:49 +08:00
b2b2044786
add tracing logging content if trace id is available in context for package gcmd
2022-06-17 17:41:10 +08:00
64c5222623
add environment support of opentelemetry propagation for package gctx
2022-06-17 16:47:01 +08:00
1597291ac3
improve configuration parsing for package gdb
2022-06-17 15:35:55 +08:00
c2e742335b
add otel support for package gcmd
2022-06-17 15:16:35 +08:00
cf5884bc60
add SetBodyContent for gclient.Response
2022-06-17 11:31:32 +08:00
cbf5ee9649
go fmt -w
2022-06-16 18:02:51 +08:00
8ac177a6de
improve UT for package gredis
2022-06-16 17:41:15 +08:00
cdd4473df5
improve command gen service; add error trace for error of some packages
2022-06-16 17:07:25 +08:00
aaebaa7250
improve DoRequestObj for gclient.Client
2022-06-16 10:51:12 +08:00
7443a8baa1
Merge branch 'develop'
2022-06-15 21:43:04 +08:00
c6ff95a3f4
README update for contrib/registry etcd/polaris
2022-06-15 21:42:12 +08:00
7957016ae2
Polaris Server Offical image support ( #1911 )
2022-06-15 19:38:22 +08:00
17ab0e2ced
remove returning error of Write* functions for ghttp.Server; add UT cases for gclient.Client.DoRequestObj
2022-06-15 19:36:53 +08:00
b0650f3402
Improve the code coverage of the garray,glist module ( #1908 )
2022-06-15 19:35:21 +08:00
f4f73f2765
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-06-15 16:28:20 +08:00
babc69e13d
add DoRequestObj function for gclient.Client
2022-06-15 16:28:17 +08:00
481c50f233
add example for package gerror
2022-06-15 14:46:31 +08:00
b62b2f3598
Improve the code coverage of the gudp module ( #1907 )
2022-06-13 22:01:20 +08:00
4f37abac6a
upgrade ClickHouse-Go dependencies to V2.0.15 ( #1904 )
2022-06-13 19:40:47 +08:00
31a23e724d
Improve the code coverage of the gclient module ( #1899 )
2022-06-13 19:31:42 +08:00
7d5ab1f8db
Merge branch 'master' of https://github.com/gogf/gf
2022-06-06 21:36:44 +08:00
0d8952dcde
improve WithTraceID function for package gtrace
2022-06-06 21:36:30 +08:00
bd7ec5d0b0
Feature/sqlite ut ( #1882 )
2022-06-06 19:57:53 +08:00
9e6e8001ca
fix gf gen service ignore watch file dir windows platform bug ( #1889 )
2022-06-06 19:56:44 +08:00
0639becccc
version updates
2022-06-01 16:36:40 +08:00
88844649eb
fix version of redoc
2022-06-01 16:34:07 +08:00
31c5d5a5f5
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-06-01 14:44:11 +08:00
6abbc57c96
fix issue #1864
2022-05-26 15:28:17 +08:00
39af6e51c4
fix ut cases for package goai
2022-05-26 15:17:59 +08:00
ef04c8a09e
Feature/oracle ( #1869 )
2022-05-25 21:55:27 +08:00
4505d61604
improve WhereBuilder feature for package gdb
2022-05-25 21:52:08 +08:00
04d32e7a91
improve FieldsPrefix for gdb.Model
2022-05-25 16:22:46 +08:00
26066965c3
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-05-25 16:02:48 +08:00
7f199527f8
improve service discovery for package gclient
2022-05-24 19:16:43 +08:00
ea79b3cbb8
move package goai from protocol to net
2022-05-24 18:53:10 +08:00
0ca81bd11a
Improve the code coverage of the gtcp module ( #1836 )
2022-05-23 22:45:12 +08:00
4d13ffdc26
improve ut case for empty upload file validation
2022-05-23 22:23:29 +08:00
331a29024e
merge master
2022-05-23 22:17:06 +08:00
6aa5c2b2ef
Fix/1748 issues #1748 ( #1817 )
2022-05-23 22:09:11 +08:00
8c969b2a84
upgrade ClickHouse dependencies to V2 ( #1772 )
2022-05-23 21:21:59 +08:00
0d7e28ee75
add deep copy feature
2022-05-23 16:51:10 +08:00
ab5062663e
Feature/gsvc interface ( #1871 )
2022-05-23 15:08:11 +08:00
896b9fa105
[ISSUE #1866 ] Fix/polaris logs dir and docker image ( #1867 )
...
* feat:modify polaris log dir
* modify polaris image docker
* fix: modify polaris docker image
2022-05-19 23:33:04 +08:00
6a01275499
improve data converting for package gdb
2022-05-19 21:44:53 +08:00
61bf0a0092
remove sqlite import for command gen dao
2022-05-19 20:13:56 +08:00
d7c5a08d20
fix issue of space char in binary pth of gofmt/goimports
2022-05-19 20:03:44 +08:00
350ee9f0a2
ci workflow updates
2022-05-19 19:59:41 +08:00
7753fc6fe1
improve error message for package gdb
2022-05-19 17:27:13 +08:00
24f5b2782d
version updates
2022-05-19 16:10:52 +08:00
853d7aaf8f
fix issue missing mysql driver import for package contrib/drivers/mysql
2022-05-19 15:02:15 +08:00
07509e9847
go mod tidy
2022-05-19 10:49:09 +08:00
ab82599ee2
Feature/polaris feat: Add Polaris support ( #1797 )
2022-05-18 22:24:40 +08:00
10e2b60ad9
workflow ci updates
2022-05-18 21:38:13 +08:00
965476c7f4
workflow ci updates
2022-05-18 21:24:15 +08:00
9536b33a6a
Fix/codecovci ( #1858 )
2022-05-18 21:18:49 +08:00
61271e4f7b
Replace the Swagger JS CDN source from jsdelivr to unpkg.com ( #1852 )
...
replace the CDN source from jsdelivr to unpkg.com
The jsdelivr cdn certificate expired in the mainland, causing the website to hang. To fix it, the solution is to replace the CDN source to unpkg.com
2022-05-18 20:34:59 +08:00
57941b6df9
Bug fix#1849 ( #1851 )
2022-05-18 20:19:40 +08:00
1102de5a66
fix issue in missing mysql import for command gen dao
2022-05-18 20:02:53 +08:00
6d33a73617
Merge branch 'master' of https://github.com/gogf/gf
2022-05-18 19:58:25 +08:00
cdcb0cdc14
Merge branch 'develop'
2022-05-18 19:58:16 +08:00
6176028176
improve package gmeta
2022-05-18 17:57:16 +08:00
c871bb3a1e
improve package gcfg
2022-05-18 15:11:49 +08:00
3430cf1f17
improve data converting for package gdb, drivers/pgsql
2022-05-18 11:55:09 +08:00
4556dda038
improve data converting for package gdb, drivers/pgsql
2022-05-18 11:16:25 +08:00
49042d480c
improve data converting for package gdb, drivers/pgsql
2022-05-18 11:05:05 +08:00
b7295a1558
Merge pull request #1843 from wenzi1/feature/mssql
...
mssql unit test
2022-05-17 21:24:50 +08:00
62d91438f2
version upgrade
2022-05-17 16:43:10 +08:00
c4c3620c5f
improve enum handling for array property of goai schema
2022-05-17 11:15:29 +08:00
ec0cbab47e
Merge remote-tracking branch 'origin/master' into feature/mssql
2022-05-17 09:42:21 +08:00
8e3c66584d
add unit test
2022-05-16 22:58:53 +08:00
84e75129a5
improve command gen service for cli
2022-05-16 20:07:30 +08:00
26d460241d
Null in field is error
2022-05-13 23:30:33 +08:00
ede54b392e
Merge branch 'master' of https://github.com/wenzi1/gf
2022-05-13 23:13:07 +08:00
d12542d78e
Merge remote-tracking branch 'origin/master'
2022-05-13 22:20:50 +08:00
3a014dcb09
fix issue in UT of mysql sriver
2022-05-13 22:11:44 +08:00
cb27f26e64
Merge branch 'gogf:master' into master
2022-05-13 22:00:49 +08:00
a3ad294d6a
README updates for drivers
2022-05-13 21:54:24 +08:00
cf57ea3ef0
Merge branch 'gogf:master' into master
2022-05-13 21:51:08 +08:00
94dd590fc4
Merge branch 'develop'
2022-05-13 21:48:11 +08:00
27836feb47
delete comment
2022-05-13 21:45:19 +08:00
96e48e1de6
Merge branch 'master' into feature/mssql
2022-05-13 21:07:34 +08:00
d5c06664b5
fix issue #1798
2022-05-13 21:04:08 +08:00
e4edbe25b2
Merge pull request #1823 from huangqian1985/master
...
add gClient ExampleNew function
2022-05-13 20:24:19 +08:00
31bc30bb27
Merge pull request #1806 from happyinsect/master
...
add support for .properties configuration file
2022-05-13 20:01:29 +08:00
a2905977ec
improve package gcmd, adding CaseSensitive option for options parsing, default is CaseInsensitive
2022-05-13 15:24:10 +08:00
b63e01adf6
add internal log content for package gcmd
2022-05-13 14:48:22 +08:00
2680666f52
improve gstr.WordWrap
2022-05-13 14:18:51 +08:00
f82f53f5f6
modify ExampleNew_MultiConn_Recommend function
2022-05-13 11:58:46 +08:00
e27ca17b0e
exec CI
2022-05-13 06:47:48 +08:00
066b1026a2
Merge branch 'master' of https://github.com/gogf/gf
2022-05-12 23:46:31 +08:00
c7cf72e7bc
fix gClien Close()
2022-05-12 23:22:30 +08:00
0e2a0075ef
Use gconv.String instead of cast.ToString.
2022-05-12 22:59:08 +08:00
6dccaf802c
CI updates
2022-05-12 22:45:57 +08:00
de5224689a
CI updates
2022-05-12 22:26:57 +08:00
f9ec01c647
CI workflow updates
2022-05-12 21:57:02 +08:00
4902eb73b7
gfmt file
2022-05-12 21:31:54 +08:00
513c8605fb
update go.mod and go.sum
2022-05-12 21:11:06 +08:00
84148bbbb0
Merge https://github.com/gogf/gf
2022-05-12 20:57:11 +08:00
c2e91edca8
Merge branch 'master' of https://github.com/gogf/gf
2022-05-12 20:17:08 +08:00
17fc1ce174
Call ReadAll() function in Close() of gClient
2022-05-12 20:08:24 +08:00
be9377a496
add test cases
2022-05-12 17:05:02 +08:00
c40a4d8a66
improve command docker for cli
2022-05-12 17:04:00 +08:00
6d0b4faeb0
gitignore updates
2022-05-12 16:01:55 +08:00
3297924992
ci test
2022-05-12 15:33:48 +08:00
059c62a6c0
ci test
2022-05-12 15:25:28 +08:00
bef942b19f
ci test
2022-05-12 14:57:26 +08:00
30140fb229
ci test
2022-05-12 14:37:31 +08:00
df3ae386cb
ci test
2022-05-12 14:35:39 +08:00
baf4cc1d1c
remove bad example and little fix
2022-05-12 12:48:37 +08:00
9fcd3374c1
Merge pull request #1827 from wenzi1/feature/mssql
...
Feature/mssql
2022-05-12 11:47:28 +08:00
d5d56e51d7
增加用例覆盖率
2022-05-12 09:39:15 +08:00
3b8853736d
Merge branch 'develop' into master
2022-05-12 09:25:25 +08:00
16b22e7505
add unit test
2022-05-12 09:03:55 +08:00
da7eac03ad
delete package comment
2022-05-12 00:25:30 +08:00
060f67c2c8
change decode/encode lib for properties to magiconair
2022-05-12 00:23:46 +08:00
273b81d60f
little fix
2022-05-12 00:22:10 +08:00
72b58ff8a1
add unit test
2022-05-12 00:03:20 +08:00
900e0b2751
add gini
2022-05-12 00:00:36 +08:00
9026fd2c13
add gClient ExampleNew function, include normal New Example, bad MultiConn New Example and Recommend MultiConn New Example
2022-05-11 23:58:36 +08:00
f6f0c8fd1e
ci test
2022-05-11 20:42:34 +08:00
4bdaacab91
ci test
2022-05-11 20:12:30 +08:00
60ca7d7246
ci test
2022-05-11 18:11:35 +08:00
e4e312c4f8
ci updates
2022-05-11 17:51:27 +08:00
7bcdbae7b8
ci updates
2022-05-11 17:36:55 +08:00
b16cd2dc85
ci updates
2022-05-11 17:11:18 +08:00
0826f8ba35
Merge pull request #1818 from wenzi1/master
...
gf-cli Bug of generating Dao file of MSSQL
2022-05-11 13:58:47 +08:00
ead284e20b
workflow updates
2022-05-11 13:58:04 +08:00
59023f9f09
delete empty line after package comment.
2022-05-11 11:08:05 +08:00
17e48ba9f2
Add test case for func tojson
2022-05-11 01:02:36 +08:00
e60b42470e
[MOD] User viper as the properties file decoding lib.
2022-05-11 00:48:22 +08:00
9c42ba187d
upgrade otel to v1.7.0
2022-05-10 20:37:44 +08:00
c6f14dc1b1
go mod updates
2022-05-10 17:54:42 +08:00
02e3240bb1
workflow yaml updates
2022-05-10 17:16:39 +08:00
54f0968f86
workflow yaml updates
2022-05-10 16:53:39 +08:00
0e75d39811
workflow yaml updates
2022-05-10 16:34:47 +08:00
6cf6414da2
improve package gdb
2022-05-10 16:31:56 +08:00
89f77a2412
update TableFields function
2022-05-10 16:00:50 +08:00
a400d8b2f3
workflow updates
2022-05-10 15:47:49 +08:00
dc6a9237d7
move ut cases from package gdb to contrib/drivers/mysql
2022-05-10 15:38:08 +08:00
2c73ba2f76
Merge pull request #2 from gogf/master
...
update
2022-05-10 10:37:13 +08:00
2cbfdf43cf
upgrade used third party package fsnotify to v1.5.4
2022-05-10 10:23:31 +08:00
5e0e6f356b
fix issue #1766
2022-05-09 22:47:04 +08:00
cbff244d88
improve package gcron
2022-05-09 21:45:57 +08:00
2e405342ca
improve package gcron
2022-05-09 21:42:50 +08:00
583d576cdb
remove octal number converting for gconv.Int*/Uint* functions; fix issue #1733
2022-05-09 21:26:42 +08:00
3db97ba0dd
fix issue #1714 , #1727
2022-05-09 20:42:41 +08:00
e81d6a859b
Merge pull request #1729 from WesleyWu/fix#1714
...
fix timezone bug when persisting *gtime.Time to db #1714
2022-05-09 20:28:00 +08:00
534abb7f17
improve hook feature for package gdb
2022-05-09 14:22:28 +08:00
7198eb3b66
add support for .properties configuration file
2022-05-08 00:23:24 +08:00
32f33b9f8c
go.mod updates
2022-05-07 18:06:51 +08:00
03ad6a5728
remove debug info for UT of package gdb
2022-05-07 17:50:49 +08:00
c1308475f3
Merge branch 'feature/wherebuilder' into develop
2022-05-07 17:49:30 +08:00
e4ec1be948
workflow updates
2022-05-07 16:43:28 +08:00
c90f91dcbe
remove Sharding feature
2022-05-07 16:38:17 +08:00
5332ce4c79
improve WhereBuilder feature for package gdb
2022-05-07 15:11:31 +08:00
eaae7f46d2
improve WhereBuilder feature for package gdb
2022-05-07 14:26:56 +08:00
8c40a53b80
improve WhereBuilder for package gdb
2022-05-06 22:21:43 +08:00
25c091df7f
improve package ghttp
2022-05-06 20:25:21 +08:00
ec3a4532b8
comment updates for package clilckhouse
2022-05-06 10:34:08 +08:00
ad04adccea
Merge pull request #1796 from houseme/feature/trace
...
feat: Report trace-compatible device host name or IP archive parameters
2022-05-05 22:19:35 +08:00
cfd2636f13
Merge pull request #1795 from huangqian1985/master
...
add ExampleEncode function
2022-05-05 22:18:20 +08:00
7e854f88ca
feat: Report trace-compatible device host name or IP archive parameters
2022-05-03 22:53:02 +08:00
3628b1e9d2
add ExampleEncode function
2022-05-02 17:29:19 +08:00
68e75c589b
add WhereBuilder feature for package gdb
2022-04-30 15:53:56 +08:00
9ad9292321
improve handler feature for package glog
2022-04-29 14:13:54 +08:00
7fcf7d31a0
improve command gen service for cli
2022-04-29 11:08:16 +08:00
0cf28c0f07
improve package goai
2022-04-28 20:58:28 +08:00
abbc96a873
improve package goai
2022-04-28 20:37:15 +08:00
b7201e111d
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-04-28 20:34:35 +08:00
a31553468c
Merge pull request #1789 from mingzaily/master
...
fix: swagger ignore "-" param.
2022-04-28 20:24:11 +08:00
ce89b440bb
feat: optimize ignore tag.
2022-04-28 17:14:19 +08:00
3a72c4a507
improve command gen service for cli
2022-04-28 15:09:54 +08:00
c82e612258
improve command gen service for cli
2022-04-27 22:10:49 +08:00
ae5891068e
schema switch in runtime feature for clickhouse/mssql/pgsql/oracle
2022-04-27 17:15:26 +08:00
f326dc4eaa
remove unused imports for package gdb
2022-04-27 15:27:44 +08:00
48fddcd5e7
improve session Manager and default Storage implements for package gsession; fix issue #1781
2022-04-27 15:05:34 +08:00
33c9204d58
fix: swagger ignore "-" param.
2022-04-26 23:22:43 +08:00
99f1e69469
add custom dao/do/entity path support for command gen dao for cli
2022-04-26 23:18:29 +08:00
ed0b3c039a
improve package gsession; improve command docker for cli
2022-04-26 22:42:56 +08:00
eef25c28b4
improve command docker/gen service
2022-04-26 17:49:01 +08:00
a32847f0c5
add default handler feature for package glog
2022-04-25 18:05:52 +08:00
0fc193faa3
add command gen service for cli
2022-04-24 22:52:29 +08:00
65077a224c
add command gen service for cli
2022-04-24 22:52:07 +08:00
c256d2d4af
fix issue in gstr.RepliaceI; add command gen service for cli
2022-04-24 22:23:56 +08:00
215a50675e
add command gen service for cli
2022-04-22 18:17:10 +08:00
023c4a19ae
add multiple tags support for command docker of cli
2022-04-21 15:29:10 +08:00
ac5d399906
improve package guid
2022-04-19 16:18:49 +08:00
7fd0e5b3bc
fix issue in loosing internal ctx data in cache feature for package gdb
2022-04-19 10:42:16 +08:00
64ff651d57
fix issue in loosing internal ctx data for Transaction for package gdb; fix issue #1732
2022-04-19 10:22:10 +08:00
d260de15ba
fix issue #1750
2022-04-18 20:57:41 +08:00
be77779aff
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-04-18 20:29:35 +08:00
e119f2a534
improve cache handlement for package gdb
2022-04-18 20:29:24 +08:00
a09c8497bc
Merge branch 'develop' of https://github.com/gogf/gf into develop
2022-04-18 20:28:14 +08:00
ebad3eb93e
error meesage update for package gdb; remove default batch number for batch insert statement for package gdb
2022-04-18 20:28:00 +08:00
e4e4534c7c
Merge pull request #1759 from qinyuguang/gdb_cache
...
fix issue #1755
2022-04-18 20:22:38 +08:00
b412fc6516
Merge pull request #1749 from qinyuguang/gjson_unmarshalvalue
...
fix issue #1747
2022-04-18 20:19:07 +08:00
f9c9750108
improve gutil.Dump
2022-04-15 18:00:16 +08:00
5dee3bb4d9
add auto creating tags github workflow; go.mod update for crontrib packages
2022-04-15 14:47:02 +08:00
1e3d8cdadd
fix issue #1721
2022-04-13 21:58:35 +08:00
c5bf45f1ae
fix issue #1755
2022-04-13 21:49:08 +08:00
bf674060c0
add internal package consts to manage shared constants; improve buildin function dump only available in develop mode for package gview
2022-04-13 21:08:12 +08:00
878dbe4ab9
fix issue #1740
2022-04-13 20:42:39 +08:00
d8b383719a
improve package gtag
2022-04-13 11:21:24 +08:00
9ff5f39701
fix issue #1747
2022-04-12 23:30:18 +08:00
5144cc0e08
Merge pull request #1735 from yuancjun/patch-1
...
avoid a single space at the end of a line.
2022-04-12 21:36:44 +08:00
ee29b28575
improve clickhouse driver
2022-04-12 21:31:51 +08:00
7785082f19
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-04-12 21:17:32 +08:00
edf40ba430
Merge pull request #1616 from DGuang21/feature-clickhouse-driver
...
Feature - clickhouse driver
2022-04-12 21:14:12 +08:00
a228495ced
improve error message for package ghttp
2022-04-12 16:15:54 +08:00
ed9dc70769
add UT case for package gvalid
2022-04-12 16:09:24 +08:00
e8581d4fd5
add Is/Equal/Unwrap functions for package gerror
2022-04-12 15:45:26 +08:00
2d6fcf5d06
fix issue #1708
2022-04-12 12:09:09 +08:00
55e0262c37
improve package gconv
2022-04-11 21:54:23 +08:00
d5e5a48170
fix issue #1747
2022-04-11 20:49:33 +08:00
d0f2928cec
fix issue of nil pointer in package internal/utils
2022-04-11 20:43:32 +08:00
190a53647e
fix issue #1701
2022-04-11 20:38:48 +08:00
f9a3fa3c23
fix issue #1700
2022-04-11 17:58:07 +08:00
f1fee72d6d
fix issue #1700
2022-04-08 18:11:17 +08:00
0b4ae6b116
add UpdateAndGetAffected for gdb.Model
2022-04-08 17:22:07 +08:00
a1ec7cb896
✨ improve clickhouse driver
2022-04-08 10:08:04 +08:00
1935412db9
✨ improve clickhouse driver
2022-04-08 10:07:14 +08:00
c90a9d45ee
✨ improve clickhouse driver
2022-04-08 09:44:42 +08:00
a594592151
Merge branch 'feature-clickhouse-driver' of https://github.com/DGuang21/gf into feature-clickhouse-driver
2022-04-08 09:43:09 +08:00
119d8bf98c
improve command gf run
2022-04-07 22:07:47 +08:00
1e141d9f64
improve package gjson/ghttp
2022-04-07 21:26:39 +08:00
587af6dec8
add sqlite support for cli tool
2022-04-07 20:29:15 +08:00
793e862e5a
Merge pull request #1730 from xiaoping378/patch-2
...
Update README.MD
2022-04-07 20:16:29 +08:00
09c3425dd3
Merge pull request #1683 from Macrow/master
...
feat: support custom listener
2022-04-07 20:05:16 +08:00
4ca168412b
avoid a single space at the end of a line.
2022-04-06 11:57:22 +08:00
66f24db6da
Update README.MD
2022-04-04 21:48:36 +08:00
c39a58f812
improve clickhouse driver
2022-04-04 14:56:44 +08:00
5034f231a9
improve clickhouse driver
2022-04-04 12:46:11 +08:00
1a271ce627
fix timezone bug when persisting *gtime.Time to db #1714
2022-04-03 16:00:19 +08:00
64afd5f64c
Merge branch 'master' of https://github.com/DGuang21/gf into feature-clickhouse-driver
2022-04-02 18:35:12 +08:00
0e0d2e1c45
fix: break when finished set custom listener in newGracefulServer method
2022-04-01 09:03:36 +08:00
52d8371ba9
add UT case for package gdb
2022-03-31 21:40:28 +08:00
1d74b58d36
Merge branch 'master' of https://github.com/DGuang21/gf into feature-clickhouse-driver
2022-03-31 21:29:17 +08:00
66803fd664
fix issue in package gdb
2022-03-31 16:57:32 +08:00
87609a3424
version update
2022-03-31 16:52:15 +08:00
b4184e4523
Merge branch 'master' of https://github.com/gogf/gf
2022-03-31 16:16:57 +08:00
05508e4fcb
improve cache feature for package gdb
2022-03-31 16:15:44 +08:00
372bae4799
fix issue in missing first result column when in select cache scenario
2022-03-31 15:42:12 +08:00
c7f51b8e77
fix: SetListener test data race error
2022-03-30 14:55:03 +08:00
21f48d3750
improve Unique function performance for normal arrays
2022-03-30 14:32:16 +08:00
b57cbacc82
refactor: method SetListener accepts slice of net.Listener and remove method SetListeners
2022-03-29 23:22:23 +08:00
126a81d89a
Merge pull request #1697 from cuishuang/master
...
fix some typos
2022-03-29 20:38:20 +08:00
707dc6b346
add xextensions feature for package goai
2022-03-29 20:31:00 +08:00
c1c86c026f
fix type integer from type number for package goai
2022-03-28 16:40:43 +08:00
5c4982cb0c
add Sort field for Pat of package goai
2022-03-28 16:20:08 +08:00
fed38ea7ab
add Sort field for Operation of package goai
2022-03-28 16:18:44 +08:00
4d6ef1c52d
add sort field for path of package goai
2022-03-28 15:59:02 +08:00
c6aba6da4d
improve ExternalDocs feature for package goai
2022-03-28 15:21:58 +08:00
ec92d2b7f4
improve empty slice/object validation logic for package gvalid
2022-03-25 17:53:58 +08:00
6810e71220
add UT case for package goai
2022-03-25 12:00:09 +08:00
f4192d695c
remove sort feature for openapi
2022-03-24 22:08:06 +08:00
6664437b06
add sort feature for path of openapi
2022-03-24 21:56:37 +08:00
96a135834a
improve openapi genereating for package ghttp
2022-03-24 20:15:54 +08:00
09ba1bf1fb
imrove context handling for package gdb
2022-03-24 17:51:49 +08:00
cc01629b57
improve hook and sharding feature for package gdb
2022-03-24 15:33:30 +08:00
2d586859c3
fix some typos
...
Signed-off-by: cuishuang <imcusg@gmail.com >
2022-03-23 21:45:00 +08:00
a5e20e4939
improve openapi paths sequence in json as api defined sequence
2022-03-23 17:39:38 +08:00
0e3f4f45e0
improve hook feature for package gdb
2022-03-23 16:23:33 +08:00
045c3e132f
improve hook feature for package gdb
2022-03-23 16:17:18 +08:00
80c068ae05
add example for properties of swagger schema object
2022-03-23 15:05:37 +08:00
6574b8cbfe
change build-in swagger ui to public cdn
2022-03-23 14:48:34 +08:00
20c48b1712
change build-in swagger ui to public cdn
2022-03-23 14:46:56 +08:00
ee16b6df88
change build-in swagger ui to public cdn
2022-03-23 14:43:48 +08:00
325887fa18
fix: SetListener overwrite default address
2022-03-22 21:35:53 +08:00
73ca527b0a
feat: add SetListener and throw error in SetListeners
2022-03-22 13:34:15 +08:00
439350836e
fix example case for package gsession
2022-03-21 22:44:21 +08:00
5ee387672b
enhancement from issue #1689
2022-03-21 22:36:06 +08:00
f670c24e2c
fix issue #1681
2022-03-21 22:24:59 +08:00
f2e1f63396
fix issue #1679
2022-03-21 22:04:15 +08:00
6dacdd60dc
add sharding feature for package gdb
2022-03-21 21:17:48 +08:00
87ccc27ee4
sharding feature develop
2022-03-21 14:26:56 +08:00
147348e0d1
refactor: remove unnecessary code in method getListenAddress of Server
2022-03-20 10:17:44 +08:00
ad202ea735
refactor: adjust method SetListeners of server and add unit test
2022-03-20 02:31:21 +08:00
950695664c
improve hook feature for package gdb
2022-03-19 23:38:57 +08:00
d1f76f3834
Merge branch 'master' of https://github.com/gogf/gf
2022-03-19 22:54:50 +08:00
66e6a05e5f
cli template update
2022-03-19 22:54:38 +08:00
0f430c66ae
Merge pull request #1684 from houseme/fix-1674
...
improve ignore and up websocket 1.5.0
2022-03-19 22:50:53 +08:00
8357b0f649
improve comment
2022-03-19 17:58:21 +08:00
7fc75bfeff
improve ignore and up websocket 1.5.0
2022-03-19 16:16:18 +08:00
d7bd1b74e8
feat: support custom listener
2022-03-18 20:54:32 +08:00
d7764e2968
Merge branch 'develop'
2022-03-18 11:52:02 +08:00
f865d6fa6a
remove UT case of http server in package gins
2022-03-18 10:13:00 +08:00
e6bbead4e6
Merge pull request #1660 from qinyuguang/gdb_cache
...
gdb returns result when cache set failed
2022-03-17 22:05:06 +08:00
5f3a525d11
add Set function for AdapterFile for package gcfg
2022-03-17 21:41:10 +08:00
c5d80a2192
improve UT cases for package gins/gvalid
2022-03-17 21:31:07 +08:00
97b8f0f781
improve recursilve validation feature for package gvalid
2022-03-17 20:27:59 +08:00
bceb5fc7de
rename gdebug.TestData* -> gtest.Data*; add UT case for http server
2022-03-17 16:58:04 +08:00
b3e66d8023
improve package gjson
2022-03-15 21:45:47 +08:00
e06f831205
improve package grand
2022-03-15 17:09:35 +08:00
60340a7348
fix UT case for package glog
2022-03-15 10:15:46 +08:00
dccfc1c8cd
add hook feature for model of package gdb
2022-03-14 23:47:55 +08:00
d58186372f
Merge branch 'master' into develop
2022-03-14 19:43:21 +08:00
d32246275a
rename DoGetAll to DoSelect
2022-03-14 19:41:32 +08:00
2eec1bc61a
version updates
2022-03-14 19:39:56 +08:00
bbab9f3934
rename DoGetAll to DoSelect
2022-03-14 19:36:43 +08:00
09a3f23e3d
cli pack updates
2022-03-13 09:23:19 +08:00
329f6b90f7
improve gutil.Dump feature
2022-03-11 15:26:01 +08:00
a4ab9c284f
gdb returns result when cache set failed
2022-03-11 13:04:53 +08:00
9e056dfac8
Merge branch 'master' of https://github.com/gogf/gf
2022-03-11 10:24:57 +08:00
d8d9996464
fix issue #1662
2022-03-11 10:24:42 +08:00
43992a137e
Merge pull request #1659 from arieslee/master
...
[fix bug] the default value of r.get is invalid
2022-03-11 09:14:11 +08:00
7767bf4d5d
重跑ci
2022-03-11 07:54:34 +08:00
acd1989fa1
improve Dump feature for package gutil
2022-03-10 22:29:47 +08:00
afa1f78a02
fix issue #1661
2022-03-10 21:12:24 +08:00
87b1433473
issue template update
2022-03-10 19:30:03 +08:00
5813979479
重跑ci
2022-03-10 14:32:06 +08:00
ba7cbfe3d9
error message update for database driver import
2022-03-10 14:29:49 +08:00
546b6b1724
t.Assert(err, nil) -> t.AssertNil(err)
2022-03-10 11:36:40 +08:00
eca3583845
fix issue #1416 ; add ParseOption for package gview
2022-03-10 11:35:23 +08:00
2471130f59
重跑ci
2022-03-10 09:52:45 +08:00
f5693c4393
improve package gview
2022-03-10 09:48:19 +08:00
12eb3ac63e
[fix bug] the default value of r.get is invalid
2022-03-10 09:33:33 +08:00
e3f0163092
Merge branch 'master' of https://github.com/gogf/gf
2022-03-10 09:23:01 +08:00
213392640c
fix issue #1653
2022-03-10 09:22:50 +08:00
4382a6e7bc
Merge pull request #1658 from houseme/fix-1655
...
fix: js link err
2022-03-10 09:14:38 +08:00
c200177af4
fix: js link err
2022-03-09 23:36:30 +08:00
465100ae41
Merge pull request #1657 from houseme/fix-1655
...
fix: server access logs contain the protocol used between the server …
2022-03-09 22:23:40 +08:00
3d6867c321
fix
2022-03-09 21:29:49 +08:00
3d5ff3b250
fix
2022-03-09 21:27:02 +08:00
be47203732
improve code
2022-03-09 21:24:57 +08:00
1625fc6f7e
improve order feature for gdb.Model
2022-03-09 21:02:08 +08:00
fa57634505
Merge pull request #1529 from zxr615/feature-groupRaw
...
Added Order() method support for gdb.
2022-03-09 20:55:15 +08:00
ac71658b4b
Merge branch 'master' into feature-groupRaw
2022-03-09 20:55:06 +08:00
61db7d96b7
Merge pull request #1520 from FlyingBlazer/patch-1
...
Fix gdb Order
2022-03-09 20:48:54 +08:00
5ee297d999
Merge pull request #1651 from chenzebinm4/develop/bert
...
Repeat 'len(s)'.
2022-03-09 20:46:41 +08:00
6301403777
Merge pull request #1632 from huangqian1985/master
...
Improving gfile and gSesssion Code Coverage
2022-03-09 20:45:44 +08:00
95881d7616
Merge pull request #1652 from stardemo/master
...
[fix] gf cli build missing suffix
2022-03-09 20:43:40 +08:00
85d8f90d81
Merge pull request #1656 from tiger1103/master
...
[fix bug] Fix redis cache adapter GetOrSetFunc, GetOrSetFuncLock meth…
2022-03-09 20:42:44 +08:00
f6054ab37f
improve code
2022-03-09 18:32:13 +08:00
5537930210
fix
2022-03-09 18:30:32 +08:00
920dbbef5e
fix: server access logs contain the protocol used between the server and the load balancer, but not the protocol used between the client and the load balancer
2022-03-09 17:42:56 +08:00
2510e0412d
[fix bug] Fix redis cache adapter GetOrSetFunc, GetOrSetFuncLock method bug and add unit test
2022-03-09 17:21:02 +08:00
2302f88847
[fix] gf cli build missing suffix
2022-03-09 11:27:52 +08:00
4f95d0a07a
Repeat 'len(s)'.
2022-03-09 10:53:28 +08:00
8f326dcac5
project template update
2022-03-08 22:51:56 +08:00
aa294ea5df
ci updates
2022-03-08 21:27:14 +08:00
6afc725b61
ci updates
2022-03-08 21:22:01 +08:00
ec01693773
ci updates
2022-03-08 21:04:48 +08:00
b0cf501782
ci updates
2022-03-08 20:28:18 +08:00
c2fb7ada0a
improve example for package gmap
2022-03-08 20:25:34 +08:00
d0a8e60ace
improve example for package gmap
2022-03-08 20:14:38 +08:00
ab36bb8842
version updates
2022-03-08 20:12:48 +08:00
0b3cd7b7ae
improve handler response for ghttp.Server
2022-03-08 11:50:23 +08:00
10ed04cdb8
example updates for package gmap
2022-03-08 09:49:33 +08:00
f08c18594b
Merge branch 'master' of https://github.com/gogf/gf
2022-03-07 22:35:39 +08:00
e09704a408
example updates for package gmap
2022-03-07 22:10:34 +08:00
ade9ae3c0b
improve package goai
2022-03-07 21:29:37 +08:00
9cf6124c4c
improve package goai
2022-03-07 21:09:02 +08:00
6d323cc529
improve package goai
2022-03-07 20:49:30 +08:00
aea9f6fe18
keep sequence in attributes definition for oai.Schemas
2022-03-07 19:46:05 +08:00
8a27463e44
ensure sequence for json.Marshal for gmap.ListMap/TreeMap
2022-03-07 17:39:41 +08:00
47ee2cba51
Merge branch 'master' of https://github.com/gogf/gf
2022-03-07 09:58:07 +08:00
531cc7b864
fix issue in package gproc
2022-03-07 09:57:51 +08:00
54bdabd94d
Merge pull request #1549 from FlyingBlazer/cookie-secure-config
...
ghttp: add cookie security configurations
2022-03-04 17:42:44 +08:00
bb6e8fe7a8
Merge branch 'master' of https://github.com/gogf/gf
2022-03-04 11:37:30 +08:00
d5d199ebef
Swagger UI updates
2022-03-04 11:36:05 +08:00
158a4589d2
Merge pull request #1637 from wangbs95/feature/fix-chinese-encode
...
fix(fix bug , add nexttime feature): ServeFileDownload filename doubl…
2022-03-04 09:32:01 +08:00
84c0f456c0
template pack update
2022-03-03 21:43:01 +08:00
3fcd6ef877
fix issue orphan value parsing for sructured arguments of command for package gcmd
2022-03-03 21:03:42 +08:00
b5855037f3
Improving gSession Code Coverage
2022-03-02 21:50:23 +08:00
4e2d378145
improve file uploading using strict route feature
2022-03-02 21:15:16 +08:00
38a7055017
Merge branch 'master' of https://github.com/gogf/gf
2022-03-02 21:05:14 +08:00
d64898c59a
improve package goai
2022-03-02 20:00:40 +08:00
3bff71b3fc
merge master and update unit test
2022-03-02 15:33:58 +08:00
8343d1cd0e
Merge branch 'master' into cookie-secure-config
2022-03-02 15:20:31 +08:00
5c23c0cecd
fix(fix bug , add nexttime feature): ServeFileDownload filename double quotes cause underscores before and after the final file
2022-03-02 11:00:04 +08:00
f580713478
Merge branch 'master' of https://github.com/gogf/gf
2022-03-02 10:26:20 +08:00
3c58b8d7fa
improve openapi
2022-03-02 10:26:09 +08:00
072d5f9760
make options public
2022-03-02 09:56:58 +08:00
f8067f5dd5
improve package ghttp
2022-03-01 22:53:19 +08:00
ea354d10cc
Merge pull request #1636 from wangbs95/feature/fix-chinese-encode
...
revert(fix bug , add nexttime feature): ServeFileDownload File name C…
2022-03-01 22:52:34 +08:00
4d5b41434a
Merge branch 'master' of https://github.com/gogf/gf
2022-03-01 22:38:51 +08:00
1724a26957
improve package gcfg
2022-03-01 22:34:57 +08:00
cb69fbcbd6
Improving gSession Code Coverage
2022-03-01 22:12:59 +08:00
46dc68dfd5
CI update for gf cli
2022-03-01 21:20:17 +08:00
12fdfbf8b2
improve package gcfg
2022-03-01 21:14:45 +08:00
992a986d12
Merge branch 'master' of https://github.com/gogf/gf
2022-03-01 20:02:21 +08:00
68bdf7deb4
revert(fix bug , add nexttime feature): ServeFileDownload File name Chinese garbled repair
2022-03-01 18:32:11 +08:00
2362c453ec
improve cli command install
2022-03-01 16:39:47 +08:00
50f6b6e0f0
fix UT case for package ghttp
2022-03-01 14:08:36 +08:00
88a9eef8a6
api swagger ui update
2022-03-01 11:43:42 +08:00
eb533f3344
Improving gfile Code Coverage
2022-02-28 22:57:53 +08:00
308e13a546
gf cli command build update
2022-02-28 22:00:25 +08:00
a0b1fefdbb
Merge branch 'master' of https://github.com/gogf/gf
2022-02-28 21:58:15 +08:00
3edbcb7bf9
gf cli update
2022-02-28 21:57:59 +08:00
436931b560
Merge branch 'master' of https://github.com/gogf/gf
2022-02-28 21:15:15 +08:00
0516159ae3
Improving gcmd Code Coverage
2022-02-28 21:11:53 +08:00
cb78953b38
Merge pull request #1628 from huangqian1985/master
...
Improving gcmd Code Coverage
2022-02-28 20:45:01 +08:00
a1ddac4e6b
Merge branch 'master' of https://github.com/gogf/gf
2022-02-28 17:49:16 +08:00
456697ea99
improve cli command install
2022-02-28 17:48:52 +08:00
8acffd1186
Improving gcmd Code Coverage
2022-02-27 21:00:23 +08:00
814450fd17
gcmd example
2022-02-27 13:22:26 +08:00
1365c1d277
Merge pull request #1623 from huangqian1985/master
...
Improving gjson Code Coverage
2022-02-27 08:59:19 +08:00
30be5c5e49
Improving gjson Code Coverage And Fix
2022-02-26 21:26:30 +08:00
932cd9d5bb
README updates
2022-02-25 10:22:54 +08:00
7b5f17c16b
gf cli pack template update
2022-02-24 22:44:48 +08:00
b5e8e68713
fix issue #1625
2022-02-24 22:07:27 +08:00
3a803ac39f
fix
2022-02-24 21:41:39 +08:00
d27db119a0
fix issue #1626
2022-02-24 21:24:42 +08:00
f54d0a339c
Improving gjson Code Coverage
2022-02-24 21:14:11 +08:00
5e3c0bd9aa
✨ improve clickhouse driver
2022-02-24 21:06:26 +08:00
d83b676c60
Merge branch 'gjson_example'
2022-02-24 20:15:55 +08:00
def3dc364f
Merge branch 'master' of https://github.com/gogf/gf
2022-02-24 20:15:44 +08:00
298aa5f040
Improving gjson Code Coverage
2022-02-24 20:14:44 +08:00
a6bbb8424c
✨ improve clickhouse driver
2022-02-24 13:50:28 +08:00
00daeb318c
✨ improve clickhouse driver
2022-02-24 13:03:01 +08:00
65341141fe
✨ improve clickhouse driver
2022-02-24 12:58:57 +08:00
fe353c5fe3
Merge branch 'gogf:master' into feature-clickhouse-driver
2022-02-24 10:12:05 +08:00
008e5ea196
✨ improve clickhouse driver
2022-02-23 22:53:28 +08:00
157e936f24
✨ improve clickhouse driver
2022-02-23 22:51:37 +08:00
e4d56e7ad9
improve package gjson
2022-02-23 16:54:15 +08:00
8eb9fdfcd0
improve package gbuild; version updates
2022-02-23 12:03:21 +08:00
3db5358dcc
fix issue #1615
2022-02-23 10:34:38 +08:00
d1fe0670fc
Merge branch 'master' of https://github.com/gogf/gf
2022-02-23 10:27:44 +08:00
ee614f9c6b
fix issue #1563
2022-02-23 10:27:31 +08:00
0fce4edcd3
Merge branch 'master' of https://github.com/gogf/gf
2022-02-23 00:46:47 +08:00
a34f52ae5e
Merge branch 'gjson_example'
2022-02-23 00:46:33 +08:00
da465bb030
Improving gjson Code Coverage
2022-02-23 00:46:13 +08:00
d23b24dfba
Merge pull request #1610 from huangqian1985/master
...
gjson Example Function
2022-02-22 22:03:54 +08:00
22941276a5
fix issue #1611
2022-02-22 21:59:18 +08:00
20a50cb198
fix issue #1615
2022-02-22 21:32:48 +08:00
f0cd3c084e
fix data race in UT cases for package ghttp
2022-02-22 20:49:09 +08:00
d9c1e1f576
improve package gconv/cli
2022-02-22 20:19:41 +08:00
aa6705f493
improva gf cli, package gcfg
2022-02-22 17:42:40 +08:00
3f526c3819
command usage description update for package gf cli
2022-02-22 14:17:18 +08:00
6f5058c9b6
add x-url-path feature for ghttp.Server
2022-02-22 14:12:09 +08:00
4935416b94
add middleware for CORS with default options
2022-02-22 10:51:22 +08:00
afa58ed45b
fix issue #1227 #1617
2022-02-22 10:43:31 +08:00
455d724c01
improve clickhouse driver
2022-02-19 23:10:31 +08:00
42bccb4c23
Merge branch 'master' of https://github.com/gogf/gf
2022-02-19 19:49:36 +08:00
b2b0a1828e
Implemented gjson Example
...
1.MapStrAny 2.Interfaces 3.Interface 4.Var 5.IsNil 6.Get 7.GetJson 8.GetJsons 9.GetJsonMap 10.Set 11.MustSet 12.Remove 13.MustRemove 14.Contains 15.Len 16.Append 17.MustAppend 18. Map 19.Array 20.Scan 21.Dump
2022-02-19 19:48:50 +08:00
ea60f7e054
improve clickhouse driver
2022-02-19 17:49:53 +08:00
daf2b649ef
improve clickhouse driver
2022-02-19 16:59:17 +08:00
aa87d234e3
improve clickhouse driver
2022-02-19 15:09:44 +08:00
5eec9ce7b1
Modify Function Name
2022-02-19 11:43:45 +08:00
7812f41b43
fix issue #1219
2022-02-17 23:04:50 +08:00
0bd3537a78
Implemented gjson Example
...
1.SetViolenceCheck 2.ToJson 3.ToJsonString 4.ToJsonIndent 5.ToJsonIndentString 6.MustToJson 7.MustToJsonString 8.MustToJsonIndent 9.MustToJsonIndentString 10.ToXml 11.ToXmlString 12.ToXmlIndent 13.ToXmlIndentString 14.MustToXml 15.MustToXmlString 16.MustToXmlIndent 17.MustToXmlIndentString 18.ToYaml 19.ToYamlString 20.ToYamlIndent 21.MustToYaml 22.MustToYamlString 23.ToToml 24.ToTomlString 25.MustToToml 26.MustToTomlString 27.ToIni 28.ToIniString 29.MustToIni 30.MustToIniString 31.MarshalJSON 32.UnmarshalJSON 33.UnmarshalValue
2022-02-17 22:54:29 +08:00
fdf09b5978
improve UT case for package gtimer
2022-02-17 22:45:06 +08:00
17d7c92b9d
fix issue #1217
2022-02-17 22:42:33 +08:00
b6a7788240
fix issue #1609
2022-02-17 22:24:50 +08:00
00ccce7bb8
fix issue #1607
2022-02-17 22:02:51 +08:00
54b564b871
fix UT cases for package ghttp
2022-02-17 21:14:11 +08:00
5882a9dc21
Merge branch 'gjson_example'
2022-02-17 20:30:26 +08:00
144249fcff
Implemented gjson Example
...
1.SetSplitChar
2022-02-17 20:29:38 +08:00
31ce55eb4d
cli update
2022-02-17 17:52:48 +08:00
255b502460
README update
2022-02-17 17:15:09 +08:00
073869b354
downgrade otel version from v1.3.0 to v1.0.0
2022-02-17 15:47:08 +08:00
9fdf20b3e2
add SetError for ghttp.Request
2022-02-17 11:51:21 +08:00
2461ef9f29
fix issue #1597
2022-02-17 11:46:35 +08:00
f8f13bd905
Implemented gjson Example
...
1.Unmarshal 2.Encode 3.MustEncode 4.EncodeString 5.MustEncodeString 6.Decode 7.DecodeTo 8.DecodeToJson
2022-02-16 22:38:25 +08:00
948cb9ff7c
enhance from issue #1589
2022-02-16 20:51:39 +08:00
fa39b9ee54
fix issue in UT cases for package gring
2022-02-16 15:31:01 +08:00
6d09328d6d
improve package goai; add example for array items response definition
2022-02-16 15:28:40 +08:00
77fc8866bf
fix issue #1567
2022-02-16 01:12:22 +08:00
a5cc03ff25
fix issue #1563
2022-02-16 00:47:23 +08:00
5ab959ba58
fix issue #1554
2022-02-16 00:26:06 +08:00
86b90ed4b6
enhancement from #1552
2022-02-15 23:55:05 +08:00
6ffdff7095
fix issue #1537
2022-02-15 23:43:47 +08:00
37c6320dd7
fix issue #1530
2022-02-15 23:04:37 +08:00
33367fd3ee
Implemented gjson Example
...
1.ExampleValid 2.ExampleMarshal 3.ExampleMarshalIndent
2022-02-15 23:02:48 +08:00
3a1cd3d588
Merge branch 'master' of https://github.com/gogf/gf into gjson_example
2022-02-15 22:15:33 +08:00
4fc27f6509
Implemented gjson Example
...
1. ExampleLoad 2.ExampleLoadJson 3.ExampleLoadXml 4.ExampleLoadIni 5.ExampleLoadYaml 6.ExampleLoadToml
7.ExampleLoadContent 8.ExampleLoadContentType 9.ExampleIsValidDataType
2022-02-15 22:08:51 +08:00
f0b78253b2
fix issue #1605
2022-02-15 01:10:03 +08:00
2428b27168
fix issue #1488
2022-02-15 00:21:05 +08:00
01ba56c38b
remove function Set for package gcfg
2022-02-14 17:20:27 +08:00
887cad3b96
fix issue #1458
2022-02-14 17:04:14 +08:00
14268aa1c0
fix issue #1405
2022-02-14 16:33:07 +08:00
23c00eb83f
fix issue #1394
2022-02-14 16:08:26 +08:00
5f2047d61b
fix issue in configuration StdoutColorDisabled for package glog; rename TempDir to Temp for package gfile
2022-02-14 14:50:25 +08:00
1f9d86f015
improve configuration read from package frame/gins
2022-02-14 11:46:20 +08:00
8cb6086f73
Implemented gjson Example
...
1. New 2.NewWithTag 3.NewWithOptions
2022-02-12 17:27:32 +08:00
a887cedb99
example update
2022-02-09 16:51:15 +08:00
1fb9be0628
improve trace feature for package gdb/gredis; add trace example cases
2022-02-09 02:49:29 +08:00
caf03b223b
CI update
2022-02-08 23:57:57 +08:00
f77d388d4f
CI update
2022-02-08 23:55:14 +08:00
d0cfeb2a8c
CI update
2022-02-08 23:52:29 +08:00
0a6e4ebf18
CI update
2022-02-08 23:25:33 +08:00
dd34892857
CI update
2022-02-08 23:19:19 +08:00
af39eb4c9f
CI update; Example update for package gcache
2022-02-08 23:13:33 +08:00
bd4948c084
fix UT case for package gdb
2022-02-08 16:38:10 +08:00
cea6cbc7db
Merge pull request #1595 from stardemo/master
...
Update Github Action badge
2022-02-08 16:31:16 +08:00
54ccbfef98
tempale content update for cmd gf
2022-02-08 16:30:38 +08:00
88b124b29a
UT cases for package gdb
2022-02-08 14:43:39 +08:00
7eff3bc697
Update Github Action badge
2022-02-02 11:18:22 +08:00
c3161d58fd
improve registry for package ghttp
2022-01-29 21:42:48 +08:00
e2a0cb97ae
up
2022-01-29 21:30:48 +08:00
4fae47db63
add secondary configuration node name for http server; improve package gsvc
2022-01-28 17:29:05 +08:00
48b5f37894
move grpc packages to katyusha
2022-01-28 16:23:44 +08:00
ff1755d2db
cli update
2022-01-28 16:18:16 +08:00
f13ccd8527
Merge branch 'master' into feature-gsvc
2022-01-28 16:09:21 +08:00
a97d74b15c
cli update
2022-01-28 16:07:00 +08:00
8b48f16508
improve service registry for package ghttp; improve service discovery for package gclient; improve cli
2022-01-28 16:00:16 +08:00
04eb654133
add error stack for internal error printing
2022-01-28 14:51:49 +08:00
1a000396e2
improve gf command gen dao
2022-01-28 10:27:33 +08:00
3a658cdb85
improve service registry for package ghttp/gclient
2022-01-27 18:12:39 +08:00
3cb578488c
add service registry feature for package ghttp/gclient
2022-01-27 16:50:31 +08:00
c845d1d93d
add Weight/RoundRobin/LeastConnection selector for package gsel; improve package balancer
2022-01-27 15:15:55 +08:00
d322e67117
fix string print for time only gtime.Time; improve package drivers
2022-01-27 12:04:46 +08:00
9ff17810a4
add raw grpc example using gsvc/resolver/registry-etcd
2022-01-26 23:43:48 +08:00
5f87591407
improve package gsvc
2022-01-26 22:23:54 +08:00
65c385c013
add etcd registry; add resolver; improve balancer
2022-01-26 20:51:17 +08:00
8094968605
README update
2022-01-26 17:05:30 +08:00
7ac9c46f12
mark underlying PostForm function deprecated for gclient.Client
2022-01-25 23:01:35 +08:00
01b9fa8ac9
improve package gcfg
2022-01-25 20:43:57 +08:00
adb4a1e6c0
README update
2022-01-25 10:21:59 +08:00
c371e5221a
improve package gsel
2022-01-24 23:33:56 +08:00
c9529199a1
add package gsvc/gsel
2022-01-24 23:09:26 +08:00
f2e7f18d61
CI update
2022-01-24 16:32:59 +08:00
96044822a0
CI update
2022-01-24 16:12:32 +08:00
c469d0277f
README update
2022-01-24 15:50:15 +08:00
221082b967
command -> cmd
2022-01-24 14:49:56 +08:00
2c2acfb5b8
README update
2022-01-24 14:47:22 +08:00
76b819ae3b
move gf cli and gdb drivers into gf repo.
2022-01-24 14:41:23 +08:00
43f1354e79
fix configuration support for package gcmd
2022-01-24 10:32:19 +08:00
6e1c76efe6
add GetAdapter for package gcache; add GetStorage for package gsession
2022-01-23 15:14:06 +08:00
e517bf7b0e
improve details for package gjson/gtcp/gudp
2022-01-22 15:45:38 +08:00
3b811c3434
add GetFreePort/GetFreePorts for package gtcp/gudp
2022-01-22 15:33:31 +08:00
9e3a49dd1b
add GetFreePort/GetFreePorts for package gipv4
2022-01-22 15:12:58 +08:00
65d1648c30
improve seconds unit support in configuration for package gredis
2022-01-22 13:48:09 +08:00
a4d80bf743
move db drivers to github.com/gogf/gf/gdb-drivers
2022-01-21 18:06:35 +08:00
a15ec0d677
expose attributes of struct Result for package gdb
2022-01-21 17:43:00 +08:00
7e5301c845
expose insert option constants for package gdb
2022-01-21 17:31:48 +08:00
795ac4773e
Merge branch 'master' of https://github.com/gogf/gf
2022-01-21 12:38:22 +08:00
c75cce0378
fix issue in package gjson for interface assertion of nil Json
2022-01-21 12:38:06 +08:00
5760289d2a
Merge pull request #1574 from qinyuguang/gdb_ping
...
gdb Ping with context
2022-01-21 12:13:39 +08:00
619e256138
improve package gcron/gtimer
2022-01-20 15:53:16 +08:00
7401fb09c9
add examples for package gcmd
2022-01-19 23:35:23 +08:00
bb37e5ac88
remove Handler feature for gcmd.Parser
2022-01-19 21:07:48 +08:00
69935f3d1c
remove ContainsOpt from package gcmd
2022-01-19 20:25:04 +08:00
3dcd9b535b
UT update for package gclient/ghttp
2022-01-19 18:26:39 +08:00
e90f72b538
improve UT cases for package gtime
2022-01-19 18:23:04 +08:00
9efc2894d4
improve UT cases for package gtime
2022-01-19 18:18:30 +08:00
07c5ce0bbc
improve UT cases for package gtime
2022-01-19 17:26:39 +08:00
3bbbe1db9c
change pointer receiver that implements interface MarshalJSON to struct receiver for all packages
2022-01-19 16:55:57 +08:00
d7b94428ae
fix issue in json marshal for package egtime
2022-01-19 16:44:58 +08:00
033e2c1d78
fix issue in rules of gmeta.Meta for package gvalid
2022-01-18 15:43:12 +08:00
9345eb5e94
dto -> do for package gdb
2022-01-17 21:10:58 +08:00
220ed74ad1
fix gstr.IsNumeric
2022-01-17 19:42:21 +08:00
658ca8c0fd
Eg
2022-01-17 17:14:40 +08:00
56f88f759a
add buildin function yamli for package gview
2022-01-17 17:10:44 +08:00
ee1585fb24
gdb Ping with context
2022-01-17 15:58:31 +08:00
c72a9f2e1e
add buildin functions xml/ini/yaml/toml for package gview
2022-01-17 15:55:45 +08:00
d4b502f14e
fix issue #1571
2022-01-15 22:15:10 +08:00
d32acabcef
fix issue #1570
2022-01-15 21:38:15 +08:00
4943c3a9e0
add UT cases for package gjson
2022-01-15 20:25:29 +08:00
58290ec9ea
fix issue in package ghash
2022-01-15 20:17:40 +08:00
6468d55a81
add absolute file path support for package gcfg/gview
2022-01-14 17:16:38 +08:00
fe93d7b332
add GetRegisteredRuleMap function, add internal logging for rule overwrite situation of package gvalid
2022-01-14 16:46:25 +08:00
067514b74f
Merge branch 'master' of https://github.com/gogf/gf
2022-01-13 21:32:17 +08:00
aff2fbdc54
Merge branch 'master' of https://github.com/gogf/gf
2022-01-13 21:31:37 +08:00
805f60efa1
improve package ghash
2022-01-13 21:31:23 +08:00
b0b1b61280
Merge pull request #1555 from larryclean/master
...
修改gdb cache的key为gcache:md5(sql)方式
2022-01-13 21:29:55 +08:00
c09f22242f
Merge pull request #1566 from qinyuguang/pgsql_dropped_field
...
gdb pgsql skip dropped fields
2022-01-13 20:57:31 +08:00
9892cc46e4
improve package ghttp
2022-01-13 20:57:13 +08:00
6e12aa4bf7
fix issue #1568
2022-01-13 20:49:26 +08:00
8731123030
add StdoutColorDisabled configuration for package glog
2022-01-13 15:22:27 +08:00
eaeb8e03ab
gdb pgsql skip dropped fields
2022-01-13 14:20:01 +08:00
6ded700f92
add options for Decode/DecodeTo/DecodeToJson functions of package gjson
2022-01-13 12:09:04 +08:00
e5613e8690
improve function New for creating db by specified configuration node
2022-01-12 21:57:46 +08:00
45fbb5326c
README updates
2022-01-12 20:43:36 +08:00
b09f4e9240
Merge branch 'master' of https://github.com/gogf/gf
2022-01-12 20:42:38 +08:00
c2f2ad7a28
README updates
2022-01-12 20:42:11 +08:00
0534994fa8
Merge pull request #1546 from eh-steve/eh-steve/gconv-map-recurse
...
Recurse map fields inside structs
2022-01-12 20:01:31 +08:00
9486f6e7e9
improve package gcmd/ghttp
2022-01-12 19:39:38 +08:00
343985ad12
Add tests to highlight problem cases previously failing
2022-01-10 18:53:32 +00:00
0f67559995
add gcode.WithCode
2022-01-10 22:58:29 +08:00
280c3b4a86
improve package gvar; remove gvar.Create
2022-01-10 20:33:09 +08:00
d4cb1666e5
improve package gclient for constants
2022-01-10 16:42:30 +08:00
bc29e86e58
Merge branch 'master' of https://github.com/gogf/gf
2022-01-10 15:50:15 +08:00
2e76268005
Merge branch 'gogf:master' into master
2022-01-10 10:34:37 +08:00
9abaf744f2
edit imports sort
2022-01-10 10:02:03 +08:00
6232c873b8
Revert "Use Copyfile() to back up the log, so as not to continue writing the log to the old file because the old fd is not closed #1366 "
...
This reverts commit a3bab8db55 .
2022-01-08 12:10:39 +08:00
a3bab8db55
Use Copyfile() to back up the log, so as not to continue writing the log to the old file because the old fd is not closed #1366
2022-01-08 12:02:56 +08:00
d30862373e
修正测试数据库配置
2022-01-07 22:25:00 +08:00
ee4ca43bd5
Safe()
2022-01-07 22:21:18 +08:00
3bed3e4f5b
修改gdb cache的key为gcache:md5(sql)方式
2022-01-07 22:14:47 +08:00
0dc1adb672
orderBy raw()
2022-01-07 21:06:49 +08:00
d045b4d2f5
make unit test compatible with go 1.15
2022-01-07 18:52:21 +08:00
572e71d76a
add CookieOptions
...
add UnitTest
2022-01-07 17:10:21 +08:00
09f83bdd58
add panic for ghttp.Server.GetBody
2022-01-06 21:47:36 +08:00
61c9d5fb3f
Merge pull request #1 from gogf/master
...
是是是
2022-01-05 19:14:33 +08:00
c91b83969c
WIP: add cookie security configuration
2022-01-05 14:33:20 +08:00
47cefbf6d7
允许多次调用Order
2022-01-05 11:53:50 +08:00
4cdddbd6e0
Recurse map fields inside structs
2022-01-04 19:22:18 +00:00
99455e328b
Merge pull request #1535 from starccck/master
...
support manipulate pg.Array type data
2022-01-04 21:24:44 +08:00
ee25d696eb
improve package gcmd
2022-01-01 20:20:49 +08:00
c17530a6db
improve command not found error for package gcmd
2022-01-01 19:57:43 +08:00
0a7e4be4ef
improve DoCommit for package gdb
2022-01-01 15:47:17 +08:00
c1586a3b81
improve package gcmd
2022-01-01 00:58:10 +08:00
09f9d1cb7a
improve package gcmd
2022-01-01 00:18:50 +08:00
00692c50da
improve package gaes
2021-12-31 14:24:07 +08:00
4663978fde
improve package gaes
2021-12-30 23:02:34 +08:00
130a67c72b
improve package gaes
2021-12-30 23:02:18 +08:00
fd5b0fdf49
comment update
2021-12-30 00:20:38 +08:00
f04715bccb
support manipulate pg.Array type data
2021-12-29 00:13:22 +08:00
3932e0b15f
add OmitEmpty support for WhereIn
2021-12-28 17:15:01 +08:00
b00de2c617
add gdb.DB.DoFilter; improve function gdb.DB.DoCommit for package gdb
2021-12-27 20:51:26 +08:00
14e96069f2
comment update for package gvalid
2021-12-26 23:17:33 +08:00
079cf9d7b8
add function EncodeString for package gjson
2021-12-26 16:16:16 +08:00
ca5c0cc84d
add MustEncodeString for package gjson
2021-12-26 14:42:09 +08:00
984e5f98f7
add MustEncode for package gjson
2021-12-26 11:26:36 +08:00
b79e4a3ab7
add interface function ConvertDataForRecord for gdb.DB
2021-12-23 22:00:28 +08:00
fab17f89c4
fix issue in ut for package gsha1/gclient/ghttp/gregex
2021-12-23 00:34:02 +08:00
48c5c1e5a8
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-23 00:09:00 +08:00
b9bb1ecd46
Merge branch 'master' of https://github.com/gogf/gf into feature/v2-gerror
2021-12-22 22:29:02 +08:00
2a8e2f9f2c
Merge pull request #1524 from houseme/master
...
feat:improve tracing
2021-12-22 22:26:15 +08:00
e5f1b74bd9
Merge pull request #1527 from huangqian1985/master
...
tidy gstr files
2021-12-22 22:25:29 +08:00
cafd9098d7
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-22 22:22:42 +08:00
b39b2374c4
Added Order() method support for gdb.
2021-12-22 20:51:03 +08:00
739490c62b
revert file
2021-12-22 20:23:24 +08:00
8de8a0c97a
Merge branch 'master' of https://github.com/gogf/gf
2021-12-22 20:01:50 +08:00
44089d70d4
Merge branch 'master' of https://github.com/gogf/gf into feature/v2-gerror
2021-12-22 18:28:04 +08:00
aabc1f8322
fix issue in time maintaining feature for package gdb
2021-12-22 17:42:26 +08:00
09493bbc36
Merge branch 'master' of https://github.com/gogf/gf
2021-12-21 23:25:10 +08:00
e389d73c65
Merge remote-tracking branch 'origin/master'
2021-12-21 23:25:04 +08:00
a9647a7bf3
tidy gstr file
2021-12-21 23:24:38 +08:00
ce93b625d4
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-21 22:59:14 +08:00
bdf8244f7d
Merge branch 'gogf:master' into master
2021-12-21 22:55:21 +08:00
7e81600772
improve package gjson
2021-12-20 00:32:23 +08:00
de17302ad0
fix issue in gstr.ReplaceI
2021-12-19 21:04:35 +08:00
25bdf10cc8
feat:improve tracing
2021-12-19 00:44:31 +08:00
02c6deaec8
feat:modify trace-ID to TraceID
2021-12-19 00:18:18 +08:00
63d384b676
help content update for pakcga egcmd
2021-12-18 23:27:41 +08:00
29a996e70e
add Trace-Id response header for package ghttp
2021-12-18 21:54:12 +08:00
4978955404
fix issue in missing handler name for standard router handlers
2021-12-18 18:25:04 +08:00
a7c4597c97
Merge remote-tracking branch 'origin/master'
2021-12-18 17:20:50 +08:00
57a1a7607a
improve package gsession
2021-12-18 17:14:33 +08:00
31772d5eac
add fnction Mustremove for package gsession
2021-12-18 14:13:36 +08:00
77422f71f7
add fnction MustSet/MusetSetMap for package gsession
2021-12-18 14:10:55 +08:00
40225c5352
improve route dump for package ghttp;remove mutex for package gtag
2021-12-18 12:54:09 +08:00
ad48dc025b
improve route dump for package ghttp
2021-12-18 12:43:33 +08:00
1215f67aac
improve route dump for package ghttp
2021-12-18 12:36:34 +08:00
b9907ae3ba
improve package gview for default folder searching
2021-12-17 21:38:10 +08:00
656d1bbbd6
improve content type response for ghttp.Server
2021-12-17 17:42:18 +08:00
20c0e6d68f
error message update for package gconv
2021-12-17 17:28:02 +08:00
b27259aded
fix issue converting empty map[string]string to map[string]interface{}
2021-12-17 17:22:55 +08:00
3658faafae
improve help content printing for package gcmd
2021-12-17 15:47:48 +08:00
0b05c9e3e7
improve function gdb.Core.HasTable
2021-12-17 12:26:30 +08:00
f3c25ecba9
fix issue in ut for package gcache/gfsnotify
2021-12-17 12:11:40 +08:00
b9d6ac26d1
rename cache function from func() (interface{}, error) to func(ctx context.Context) (value interface{}, err error) for package gcache; add cache for function Tables of gdb.Core; improve Where condition with prefix handling for package gdb
2021-12-17 11:46:05 +08:00
f583f28953
rename SetTraceID to WithTraceID for package gtrace
2021-12-17 01:27:24 +08:00
b6d60fc209
downgrade otel version to v1.0.0
2021-12-17 00:55:48 +08:00
f72ba0b64d
fix issue in ut of package internal/tracing
2021-12-17 00:11:41 +08:00
8f24dc3549
add SetTraceID for package gtrace
2021-12-17 00:06:38 +08:00
4de74464ac
fix issue in unit testing case for package gctx/glog
2021-12-16 23:38:40 +08:00
fa45715416
go fmt for go 1.17
2021-12-16 23:26:41 +08:00
df68ce23d2
min required go version upgrade to 1.16
2021-12-16 23:18:12 +08:00
aee52fd56e
enable OpenTelemetry in default for some core components
2021-12-16 23:09:37 +08:00
000483cc6f
Merge branch 'master' of https://github.com/gogf/gf
2021-12-16 12:45:27 +08:00
f4e8eff813
improve help content printing for package gcmd
2021-12-16 12:45:00 +08:00
4143722f6f
Merge pull request #1521 from huangqian1985/master
...
gstr Example Function
2021-12-16 10:05:01 +08:00
b0675400e3
Merge branch 'gstr_sample'
2021-12-15 21:18:55 +08:00
eb5332ea11
Merge branch 'master' of https://github.com/gogf/gf
2021-12-15 21:18:49 +08:00
ff2e9b568b
Implemented gstr Example
...
1. PrefixArray 2.SubStrFrom 3.SubStrFromEx 4.SubStrFromR 5.SubStrFromREx
2021-12-15 21:15:34 +08:00
19c9f0a488
add DTO feature for package gdb
2021-12-15 00:01:59 +08:00
90e116fb9e
Merge branch 'master' of https://github.com/gogf/gf
2021-12-14 23:54:53 +08:00
e28be8d114
reorder the sample function
2021-12-14 23:54:15 +08:00
36e05561cc
improve Export feature for package gres
2021-12-14 23:49:08 +08:00
bc2ce19876
add Export feature for package gres
2021-12-14 23:01:20 +08:00
4c7e409e61
improve argument/option printing content for package gcmd
2021-12-14 22:34:06 +08:00
a4bb80b6fd
Merge branch 'master' of https://github.com/gogf/gf
2021-12-14 21:13:58 +08:00
bb1a95fff8
fix issue in gproc.ShellExec
2021-12-14 21:01:36 +08:00
937845e67d
Merge branch 'master' of https://github.com/gogf/gf
2021-12-14 16:14:04 +08:00
7d84ab761b
improve package gcmd for help content printing
2021-12-13 20:30:56 +08:00
80daed6bdf
add repeated checks for command name, argument name and short name for package gcmd
2021-12-13 20:18:13 +08:00
1015fb5338
improve package gcmd
2021-12-13 19:59:41 +08:00
e401ba0f43
Merge branch 'master' of https://github.com/gogf/gf
2021-12-11 23:11:35 +08:00
b4e6abc460
Adjust the function sequence
2021-12-11 23:11:17 +08:00
a1fb5f18dc
improve package gcmd
2021-12-11 01:11:40 +08:00
780d06b19e
improve package gcmd
2021-12-11 00:57:26 +08:00
3a20883a81
improve package gcmd
2021-12-11 00:12:58 +08:00
f0c25d8476
improve package gcmd/gtag
2021-12-10 23:58:10 +08:00
34e7913268
add internal logging for package gtrace
2021-12-10 23:26:53 +08:00
e10ba4cf67
improve stack filtering for package gdebug/glog
2021-12-10 22:54:32 +08:00
39bbca2a50
add stack filter of goframe module path for logging content
2021-12-10 18:52:35 +08:00
e02bdd875d
add stack filter of goframe module path for logging content
2021-12-10 18:25:28 +08:00
3f24159636
add tracing configuration switch for whole framework
2021-12-10 18:08:36 +08:00
4769fbf383
Merge branch 'master' of https://github.com/gogf/gf
2021-12-09 23:49:53 +08:00
f25f8e8033
add argument feature for package gcmd
2021-12-09 23:49:39 +08:00
6a7722995e
Merge pull request #1517 from huangqian1985/master
...
gpool Function Example
2021-12-09 22:34:45 +08:00
892619678e
Merge branch 'master' of https://github.com/gogf/gf
2021-12-09 21:29:15 +08:00
8a2f49a4d2
Merge remote-tracking branch 'origin/master'
2021-12-09 21:28:52 +08:00
57a939e10b
Implemented gpool All Example
2021-12-09 21:28:03 +08:00
01930c9899
improve package gcmd
2021-12-08 19:50:28 +08:00
4f0b45aeac
improve package gcmd
2021-12-08 19:21:25 +08:00
b7b71795a4
improve package gcmd
2021-12-07 22:19:28 +08:00
9c41f2e3f8
improve package gcmd
2021-12-07 22:10:19 +08:00
a8d6363e79
inject Command into context and add function CommandFromCtx for package gcmd
2021-12-07 21:55:06 +08:00
5dcdb66794
add MustShell/MustShellRun/MustShellExec for package gproc
2021-12-07 21:13:50 +08:00
0c1de766bc
Merge branch 'master' of https://github.com/gogf/gf
2021-12-07 21:03:23 +08:00
ad64a29145
add MustSet/MusetRemove for package genv
2021-12-07 21:03:06 +08:00
885ddd36fc
Merge branch 'master' of https://github.com/gogf/gf
2021-12-07 19:09:09 +08:00
6a82fdb888
add config feature for package gcmd
2021-12-07 19:08:52 +08:00
02f01323f9
Merge pull request #1510 from huangqian1985/master
...
Validator Function Example
2021-12-07 19:07:54 +08:00
5af426d265
Merge branch 'gvalid_Example'
2021-12-07 13:50:11 +08:00
10fc81f716
modify gvalid sample file name
2021-12-07 13:49:08 +08:00
4b168f5579
Merge branch 'gvalid_Example'
2021-12-06 22:20:41 +08:00
a0a9ecfa20
Merge branch 'master' of https://github.com/gogf/gf into gvalid_Example
2021-12-06 22:20:15 +08:00
ff36667dbc
move sample function to right file
2021-12-06 22:20:00 +08:00
667b6aa4ca
Merge branch 'gvalid_Example'
2021-12-05 22:18:39 +08:00
e11698dc2a
modify function name
2021-12-05 22:18:13 +08:00
dacc19ac98
Merge pull request #1508 from Hades300/GetRemoteIp-IPv6Fix
...
ghttp_request.go GetRemoteIp ipv6 fix
2021-12-05 21:59:20 +08:00
d330e9ac8f
Merge pull request #1509 from victory460/master
...
fix a comment error in IsSubDomain
2021-12-05 21:57:43 +08:00
85d01f3d9e
Merge branch 'gvalid_Example'
...
# Conflicts:
# util/gvalid/gvalid_z_example_test.go
2021-12-05 15:01:08 +08:00
15fd815144
Merge branch 'master' of https://github.com/gogf/gf into gvalid_Example
2021-12-05 14:56:50 +08:00
68a8a456c9
move function sample to new file
2021-12-05 14:56:34 +08:00
2bb80593a7
Merge pull request #1511 from houseme/master
...
Update README.MD
2021-12-04 23:51:56 +08:00
58992fa0ba
Merge branch 'master' of https://github.com/gogf/gf
2021-12-04 23:34:34 +08:00
0e3a8576b4
improve debugging feature
2021-12-04 23:07:54 +08:00
8586f31e03
github action
2021-12-04 22:44:02 +08:00
bca467cd15
github action
2021-12-04 22:43:30 +08:00
21215f6b2f
github action
2021-12-04 22:36:13 +08:00
cb6095dc17
github action
2021-12-04 22:17:35 +08:00
8121b9c794
test commit
2021-12-04 21:29:37 +08:00
66450b0ecd
disable debugging internal logging content in github action
2021-12-04 20:51:24 +08:00
a4d7cf14a7
Merge branch 'master' of https://github.com/gogf/gf
2021-12-04 20:50:09 +08:00
65fde53083
Update README.MD
2021-12-04 18:25:24 +08:00
acb2bc7d99
Merge branch 'master' of https://github.com/gogf/gf into gvalid_Example
2021-12-04 14:35:45 +08:00
7b9a03d13c
Implemented Validator Example
...
1.RuleFunc 2.RuleFuncMap
2021-12-04 14:35:33 +08:00
b6df7b94d0
change MaxConnCount to 0 for ulimited connections for package gdb
2021-12-04 13:57:38 +08:00
71399d1f65
improve package gcmd
2021-12-04 00:26:45 +08:00
0da5535bda
improve package gvalid
2021-12-04 00:11:57 +08:00
c74a33f04a
README update
2021-12-04 00:07:49 +08:00
ecfedff32a
README update
2021-12-04 00:07:05 +08:00
34bf315623
README update
2021-12-04 00:05:54 +08:00
3f030b1f6e
improve error message for invalid rule for package gvalid
2021-12-03 23:56:00 +08:00
8de176d73f
move package /net/ghttp/internal/client as /net/gclient
2021-12-03 23:32:00 +08:00
afc3367f31
auto enable dump feature for ghttp.Client
2021-12-03 17:49:26 +08:00
f56c2ed356
fix a comment error in IsSubDomain
...
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com >
2021-12-03 17:19:42 +08:00
e2fbce0420
ghttp_request.go GetRemoteIp ipv6 fix
2021-12-03 16:07:04 +08:00
80e8a58f45
add NeedArgs feature for package gcmd
2021-12-02 23:50:29 +08:00
26ef8c5872
add root tag in matadata of struct to specify the root command function for the object for package gcmd
2021-12-02 23:31:06 +08:00
b840405af6
improve error logging format for ghttp.Server
2021-12-02 21:22:02 +08:00
6aa39b3451
improve package gcfg
2021-12-02 20:55:41 +08:00
c1b75b9071
improve package gcmd
2021-12-02 20:27:26 +08:00
65e1048715
improve package gcron
2021-12-02 20:05:29 +08:00
9ed6ebbcff
Merge pull request #1384 from kingeasternsun/processconflict
...
feat(fix bug , add nexttime feature):
2021-12-02 19:50:01 +08:00
e615528f17
Merge pull request #1506 from houseme/master
...
feat:add trace db.statement、host.name
2021-12-02 19:47:07 +08:00
261fa7e843
Merge pull request #1505 from jqb44179/feature/gfile_example
...
pull request by gfile example
2021-12-02 19:41:21 +08:00
5ed5adc6df
feat:add trace db.statement、host.name
2021-12-02 18:54:56 +08:00
632b7f34ae
add gfile example
2021-12-02 17:27:53 +08:00
9659f45fbb
Implemented Validator Example
...
1.Ci 2.Data 3.Assoc 4.Rules 5.Messages
2021-12-01 23:16:16 +08:00
30a597cadc
Merge pull request #1501 from ehproject-teamer/master
...
update MarshalJSON example
2021-12-01 22:18:25 +08:00
e4e98caf8f
Merge branch 'master' of https://github.com/gogf/gf into gvalid_Example
2021-11-30 23:49:34 +08:00
6b5f111b6a
Implemented gvalid Example
...
1.New 2.Run 3.Clone 4.I18n
2021-11-30 23:48:26 +08:00
8f0c0337c5
update gtime example output
2021-11-30 23:10:02 +08:00
d87413fb23
Merge branch 'master' of https://github.com/ehproject-teamer/gf
2021-11-30 22:55:51 +08:00
0340fb7124
update gtime example
2021-11-30 22:53:28 +08:00
6c19844a2f
Merge branch 'gogf:master' into master
2021-11-30 22:50:48 +08:00
dd0045e36f
improve package gcmd
2021-11-30 16:43:42 +08:00
6acb2f46e6
update gtime example
2021-11-29 10:14:55 +08:00
578d8218bd
go fmt
2021-11-29 10:08:12 +08:00
f754bdbb0e
Update gtime_z_example_time_test.go
2021-11-29 10:05:52 +08:00
3ff77a87d4
add json
2021-11-28 23:57:49 +08:00
2ead7606b2
go fmt
2021-11-28 23:41:41 +08:00
1fdf85e3b8
update MarshalJSON example
2021-11-28 23:36:21 +08:00
18c4082bd2
Merge branch 'master' of https://github.com/gogf/gf
2021-11-27 20:54:15 +08:00
45e9e108bd
add search folders for package gcfg
2021-11-27 20:54:02 +08:00
ec55463856
Merge pull request #1500 from huangqian1985/master
...
AVLTree Example And RedBlackTree Example
2021-11-27 20:37:02 +08:00
8944635bf9
modify "May Output" to "Output"
...
modify fuinction name
2021-11-27 20:07:39 +08:00
c4b45d2400
modify "May Output" to "Output"
2021-11-27 19:33:00 +08:00
b444a661c2
Merge branch 'master' of https://github.com/gogf/gf
2021-11-27 19:12:04 +08:00
085ac39231
Implemented RedBlackTree All Example
2021-11-27 19:11:14 +08:00
f5bd5a8748
Implemented AVLTree All Example
2021-11-27 18:09:16 +08:00
478f901595
Fix AVLTree MarshalJSON() Bug
2021-11-27 18:08:48 +08:00
5073413ffc
improve TableFields feature for package gdb
2021-11-27 12:59:41 +08:00
7bdb4fe660
fix unit testing case for package gcache
2021-11-27 12:10:05 +08:00
bf8afc96e4
improve instance creating of database for package gins
2021-11-27 11:53:05 +08:00
817c3ce698
add Available function for Adapter of package gcfg
2021-11-27 01:36:21 +08:00
c33378540a
add Available function for Adapter of package gcfg
2021-11-27 01:33:53 +08:00
c160500c7d
Merge branch 'master' of https://github.com/gogf/gf
2021-11-27 01:10:14 +08:00
35cf228d83
add AdapterRedis for package gcache
2021-11-27 01:10:00 +08:00
b0eb76359e
Implemented AVLTree Example
...
1.ExampleNewAVLTree 2.ExampleNewAVLTreeFrom
Implemented RedBlackTree Example
1.ExampleNewRedBlackTree 2.ExampleNewRedBlackTreeFrom
2021-11-27 00:04:43 +08:00
16a05f1450
Fix IteratorAscFrom() And IteratorDescFrom() Panic Bug
2021-11-27 00:02:19 +08:00
1749af1416
Merge branch 'master' of https://github.com/gogf/gf into gtree_Example
2021-11-26 23:37:07 +08:00
ae7685278d
Merge pull request #1496 from huangqian1985/master
...
BTree Example
2021-11-26 23:32:49 +08:00
b63786cd75
Merge branch 'master' of https://github.com/gogf/gf into gtree_Example
2021-11-26 23:21:19 +08:00
e5c3444ea6
Merge branch 'master' of https://github.com/gogf/gf
2021-11-26 23:03:10 +08:00
0ded168715
Merge branch 'master' of https://github.com/gogf/gf into gtree_Example
2021-11-26 22:57:12 +08:00
a7b78b00b1
comment update for package gtree
2021-11-26 22:49:06 +08:00
a0c139f6a7
rename words and format output
2021-11-26 21:05:01 +08:00
b649c5aca8
Merge pull request #1486 from Hamster601/gvar_dev
...
add gvar example
2021-11-26 20:38:37 +08:00
56c13c2abf
Merge pull request #1495 from mojo-zd/master
...
remove unnecessary code
2021-11-26 20:38:06 +08:00
e21cd301c2
Merge pull request #1499 from zxr615/fix_orderby_null
...
order by null is not escaped
2021-11-26 20:37:27 +08:00
656fb99b6a
add test case
2021-11-26 11:48:15 +08:00
1725d247ae
order by null is not escaped
2021-11-26 10:38:50 +08:00
85aa850539
Merge branch 'master' into gvar_dev
2021-11-26 10:25:49 +08:00
2cae1412f9
add line
2021-11-26 10:25:25 +08:00
f78d65833b
Fix Left() And Right() Panic Bug
2021-11-25 23:56:51 +08:00
2c542cfd46
Implemented BTree Example
...
1.Keys 2.Values 3.Map 4.MapStrAny 5.Clear 6.Replace 7.Height 8.Left 9.Right 10.String 11.Search 12.Print 13.Iterator 14.IteratorFrom 15.IteratorAsc 16.IteratorAscFrom 17.IteratorDesc 18.IteratorDescFrom 19.MarshalJson
2021-11-25 23:55:36 +08:00
ab1f64a83e
remove unnecessary code
2021-11-25 22:01:47 +08:00
9105590c69
improve chaining feature for ghttp.Client
2021-11-25 16:23:18 +08:00
fe1ca3cc22
format
2021-11-25 16:13:12 +08:00
c906990b63
add http instance function for package gins
2021-11-25 16:06:02 +08:00
23f13c0f6a
新增gvar使用示例
2021-11-25 15:50:58 +08:00
be0df90d05
add strict attribute for gcmd.Command for strict option parsing
2021-11-25 14:56:15 +08:00
65b6fbba84
Implemented BTree Example
...
1.GetVar 2.GetVarOrSet 3.GetVarOrSetFunc 4.GetVarOrSetFuncLock 5.SetIfNotExist 6.SetIfNotExistFunc 7.SetIfNotExistFuncLock 8.Contains 9.Remove 10.Removes 11.IsEmpty 12.Size
2021-11-25 07:25:29 +08:00
58a2e5a3b3
Merge branch 'master' of https://github.com/gogf/gf into gtree_Example
2021-11-24 23:23:50 +08:00
2866ee75a1
Implemented BTree Example
...
1.Clone 2.Set 3.Sets 4.Get 5.GetOrSet 6.GetOrSetFunc 7.GetOrSetFuncLock
2021-11-24 23:23:14 +08:00
f91b5b558a
improve package gcmd
2021-11-24 22:45:34 +08:00
0db3a9f0f6
improve package gcmd
2021-11-24 22:27:09 +08:00
8442bab164
improve package gcmd
2021-11-24 22:15:23 +08:00
332de30fba
improve package gcmd
2021-11-24 21:57:41 +08:00
c5541b484f
improve package gtag/gcmd
2021-11-24 21:41:36 +08:00
7b22355abb
expose package internal/structs as os/gstructs; add package gtag for custom tag storage feature
2021-11-24 16:17:50 +08:00
09be476fd9
Implemented BTree Example
...
1.NewBTree 2.NewBTreeFrom
2021-11-23 23:21:29 +08:00
e2abee7ba4
Merge branch 'master' of https://github.com/gogf/gf
2021-11-23 21:05:44 +08:00
6d62e071e4
fix issue in package goai
2021-11-23 21:05:31 +08:00
af289bcc7e
Merge branch 'master' of https://github.com/gogf/gf into gtree_Example
2021-11-23 20:57:30 +08:00
c12404b378
add gtree example new file
2021-11-23 20:53:17 +08:00
8a22b129dd
add gtree example new file
2021-11-23 20:52:57 +08:00
28fe100761
Merge pull request #1489 from huangqian1985/master
...
gmap Example and gvalid Example
2021-11-23 20:40:33 +08:00
0622b517c5
command object feature for package gcmd
2021-11-23 20:26:55 +08:00
d7da2b5657
Merge branch 'master' of https://github.com/gogf/gf
2021-11-23 20:22:00 +08:00
5415d6dc52
Merge branch 'master' into feature/gcmd-manager
2021-11-23 16:24:11 +08:00
1978a262a8
improve ScanList feature for pakcga egdb
2021-11-23 15:28:40 +08:00
9e21052a3c
object feature for package gcmd
2021-11-23 14:08:37 +08:00
9748b9f70b
improve association feature for package gvalid
2021-11-23 10:42:43 +08:00
a237495b66
modify CheckStruct to Run
2021-11-23 07:44:35 +08:00
00ac9069ee
Merge branch 'master' of https://github.com/gogf/gf
2021-11-22 23:26:40 +08:00
7e3d7b3575
modify UnmarshalValue Sample
2021-11-22 23:11:40 +08:00
a96acf6eed
improve dump feature for package gutil
2021-11-22 23:05:32 +08:00
bbc43520fb
improve package gvalid
2021-11-22 22:47:00 +08:00
cea6e4c3d9
improve package gvalid
2021-11-22 22:43:09 +08:00
7e56bf700a
Merge branch 'master' of https://github.com/gogf/gf
2021-11-22 21:10:52 +08:00
2728ab9e42
add "ci" rule Example
2021-11-22 21:04:24 +08:00
3be19e58e1
recursive validation feature for package gvalid
2021-11-22 20:28:47 +08:00
82ea10a59b
Merge branch 'master' of https://github.com/gogf/gf
2021-11-22 15:27:38 +08:00
86a1721326
Merge branch 'master' into feature/recursive-validation
2021-11-22 14:45:53 +08:00
eaef2d865e
add rule ci for package gvalid
2021-11-22 14:41:33 +08:00
dc1ad3dda4
gcmd manager feature
2021-11-22 11:23:46 +08:00
c94513f4aa
add "bail" rule Example
2021-11-22 08:59:21 +08:00
bae18a92b7
Merge branch 'master' of https://github.com/gogf/gf
2021-11-22 00:27:10 +08:00
a3dfebffb4
output modify
2021-11-22 00:26:34 +08:00
f5920fff68
Merge branch 'master' of https://github.com/gogf/gf
2021-11-21 23:04:11 +08:00
e15a862cd2
Merge pull request #1463 from hailaz/master
...
add examples for package gfile
2021-11-21 22:47:03 +08:00
22b7b2b953
comment updates for package gcmd
2021-11-21 22:38:47 +08:00
dde4b75022
improve command feature for package gcmd
2021-11-21 13:11:28 +08:00
e936b376fb
improve command feature for package gcmd
2021-11-21 13:09:45 +08:00
b58c5311d0
Implemented TreeMap Example
2021-11-21 12:44:59 +08:00
dbee5810dc
merge master
2021-11-21 00:54:40 +08:00
8ea4b71e7a
Implemented ListMap Example
2021-11-20 21:46:20 +08:00
3e5b3a6dad
Implemented StrStrMap Example
2021-11-20 12:37:09 +08:00
61bc38fff6
Implemented StrStrMap Example
2021-11-20 12:27:01 +08:00
c047214a33
Merge branch 'master' of https://github.com/gogf/gf
2021-11-20 12:13:12 +08:00
7d75f6e7c5
Implemented StrStrMap Example
2021-11-20 12:13:05 +08:00
a99cc34243
Implemented StrStrMap Example
2021-11-20 12:12:32 +08:00
8db890c510
improve unit testing case for package gcache
2021-11-20 12:08:14 +08:00
1db2c31ecc
Implemented StrIntMap Example
2021-11-20 08:47:44 +08:00
49edad0216
Implemented StrAnyMap Example
2021-11-20 08:13:10 +08:00
51fd87bc01
Implemented StrAnyMap Example
2021-11-20 07:49:56 +08:00
42673c383a
merge master
2021-11-19 23:14:58 +08:00
9aeac45198
Implemented IntIntMap Example
2021-11-19 21:46:11 +08:00
d9a152b772
Merge branch 'master' of https://github.com/gogf/gf
2021-11-19 20:44:52 +08:00
cd9ea5697b
Merge branch 'master' of https://github.com/gogf/gf
2021-11-19 15:23:34 +08:00
551ceef0e1
improve package gconv
2021-11-19 15:21:46 +08:00
b81a1e7c9c
Merge pull request #12 from gogf/master
...
pr from master
2021-11-19 09:56:02 +08:00
0355ec6b21
doc: add code comments
2021-11-19 09:53:32 +08:00
076b15d71f
Implemented IntAnyMap Example
2021-11-19 07:27:19 +08:00
d35daa0f72
Merge pull request #1487 from stardemo/master
...
add ci notice for go fmt
2021-11-18 22:36:36 +08:00
d138c5bff2
improve unit testing case for package gview
2021-11-18 22:33:36 +08:00
66d56396ca
improve unit testing case for package gview
2021-11-18 22:16:54 +08:00
0c62c62a7a
improve example for package gstr
2021-11-18 22:13:12 +08:00
7d6c9244cf
Implemented AnyAnyMap Example Function:
...
1.Replace 2.LockFunc 3.RLockFunc 4.Flip 5.Merge 6.String 7.MarshalJSON 8.UnmarshalJSON 9.UnmarshalValue
2021-11-18 21:37:27 +08:00
7f33c101c8
Merge branch 'master' of https://github.com/giamyl/gf
2021-11-18 20:11:41 +08:00
07ac8aca41
fix unit testing cases for package gres/gview
2021-11-18 20:07:24 +08:00
de4db409ee
improve gutil.Dump
2021-11-18 15:25:24 +08:00
712416f490
improve gutil.Dump
2021-11-18 15:20:37 +08:00
0d8c9d5cfb
move "gofmt check pass" echo
2021-11-18 11:56:03 +08:00
9547277931
fix gofmt check cmd
2021-11-18 11:32:03 +08:00
02849956e8
add ci gofmt check notice
2021-11-18 11:23:51 +08:00
dcf5975334
Merge branch 'gogf-master'
2021-11-18 09:54:35 +08:00
747ed6c64d
Merge branch 'master' of https://github.com/gogf/gf into gogf-master
2021-11-18 09:52:27 +08:00
e586e4d109
更新示例文件
2021-11-18 08:59:51 +08:00
be2a0f4a18
Delete gstr_z_all_example_test.go
2021-11-18 08:58:48 +08:00
a184d16f06
更新示例
2021-11-18 08:58:21 +08:00
f6facc7507
修改示例
2021-11-18 08:54:44 +08:00
7d7ceec1d6
Merge branch 'gogf:master' into master
2021-11-18 08:54:13 +08:00
3f4dff462d
Merge branch 'master' of https://github.com/gogf/gf
2021-11-18 07:33:29 +08:00
36927b4371
Implemented AnyAnyMap Example Function:
...
1.Remove 2.Removes 3.Keys 4.Values 5.Contains 6.Size 7.IsEmpty 8.Clear
2021-11-18 07:32:29 +08:00
290200a490
修改示例表现形式
2021-11-18 06:26:27 +08:00
57ccc13e0c
unit testing files renaming
2021-11-17 23:20:58 +08:00
ef29ee4804
Implemented AnyAnyMap Example Function:
...
1.Iterator 2.Clone 3.Map 4.MapCopy 5.MapStrAny 6.FilterEmpty 7.FilterNil 8.Set 9.Sets 10.Search 11.Get 12.Pop 13.Pops 14.GetOrSet 15.GetOrSetFunc 16.GetOrSetFuncLock 17.GetVar 18.GetVarOrSet 19.GetVarOrSetFunc 20.GetVarOrSetFuncLock
2021-11-17 23:18:35 +08:00
732664a1ff
files renaming for package gdb
2021-11-17 22:01:17 +08:00
f2ef7454c2
improve prefix feature for package gdb
2021-11-17 21:29:46 +08:00
e4023cadce
doc: add code comments
2021-11-17 19:50:03 +08:00
92b9af5d9e
Merge branch 'master' of https://github.com/gogf/gf
2021-11-17 19:32:06 +08:00
51cc9c541f
doc: add copyright
2021-11-17 14:14:19 +08:00
6ad7baeb2c
remove gsmtp
2021-11-16 23:39:45 +08:00
266a4214c5
fix example for package gregex
2021-11-16 21:40:04 +08:00
67a479a2cd
remove .example
2021-11-16 21:37:59 +08:00
459aaea6e1
.golangci.yml updates
2021-11-16 21:25:14 +08:00
9b93542e99
Merge pull request #1483 from houseme/master
...
improve code 'if block ends with a return statement, so drop this els…
2021-11-16 21:02:56 +08:00
0b9931a3a4
improve Dump feature for package gutil
2021-11-16 20:41:31 +08:00
bb4f72d1ec
improve code Introduce according to grouping
2021-11-16 19:43:02 +08:00
e86ee052cb
improve code import
2021-11-16 19:29:02 +08:00
c6efb5ee3b
[feature] improve code range map
2021-11-16 17:21:13 +08:00
efcba5ecae
Merge branch 'master' of https://github.com/gogf/gf
2021-11-16 07:36:23 +08:00
416a5173ae
1# Complete the AnyAnyMap Example Function (Not Implemented)
...
2# Implemented AnyAnyMap Example Function:
1.NewAnyAnyMap 2.NewAnyAnyMapFrom
2021-11-16 07:30:14 +08:00
cc9b3a08d0
splite gmap example file.
2021-11-16 07:20:18 +08:00
857ca4d978
URL encode and decode
2021-11-16 00:59:15 +08:00
0135d23b16
URL-encode according to RFC 3986
2021-11-16 00:56:38 +08:00
babb84a798
Merge branch 'gogf:master' into master
2021-11-16 00:45:34 +08:00
e92aaa0891
Merge branch 'master' of https://github.com/gogf/gf
2021-11-16 00:42:44 +08:00
939a9267c6
improve slice converting for package gconv
2021-11-16 00:41:47 +08:00
ff8633231f
improve code 'if block ends with a return statement, so drop this else and outdent its block (golint)'
2021-11-16 00:26:10 +08:00
4e1bbd76f9
Merge branch 'master' of https://github.com/gogf/gf
2021-11-15 23:34:43 +08:00
570814cf6e
gmap example function
...
1.NewFrom 2.NewHashMap 3.NewHashMapFrom
2021-11-15 23:34:25 +08:00
47a4c6b58c
Merge pull request #1481 from houseme/master
...
improve code
2021-11-15 22:36:31 +08:00
4fa2a879d7
[feature] improve code gview
2021-11-15 20:49:02 +08:00
cd60a4aca7
[feature] improve code glog
2021-11-15 20:31:16 +08:00
b664982be3
[feature] improve code gfile gcfg
2021-11-15 20:26:31 +08:00
485785e023
improve example for package gqueue
2021-11-15 19:20:46 +08:00
5389a93ec8
Merge branch 'master' of https://github.com/gogf/gf
2021-11-15 19:16:40 +08:00
634cacd435
merge develop
2021-11-15 19:15:58 +08:00
61bf7a28d2
Merge pull request #1480 from huangqian1985/master
...
gring Example
2021-11-15 19:12:22 +08:00
e172c486c3
Merge pull request #1478 from houseme/master
...
Upgrade opentelemetry version to 1.2.0. Improved import, by group improt
2021-11-15 19:11:41 +08:00
da7ddd43f5
improve field filtering for list type parameters of function Data for ForDao models
2021-11-15 17:39:23 +08:00
98e5fb1542
improve field filtering for list type parameters of function Data for ForDao models
2021-11-15 17:27:35 +08:00
f99b037c60
improve field filtering for list type parameters of function Data for ForDao models
2021-11-15 17:06:04 +08:00
5a1209c82d
developing recursive validation
2021-11-15 16:50:30 +08:00
8ddab7f0cc
Merge branch 'gogf:master' into master
2021-11-14 22:50:53 +08:00
6cd8d008eb
Modifying LockIteratorPrev to RLockIteratorPrev and its implementation
2021-11-14 21:35:00 +08:00
f4f1145424
gring example function
...
1.Set 2.Put 3.Move 4.Prev 5.Next 6.Link 7.Unlink 8.RLockIteratorNext 9.RLockIteratorPrev 10.SliceNext 11.SlicePrev
2021-11-14 21:33:23 +08:00
d7c121430e
Merge branch 'master' of https://github.com/gogf/gf
2021-11-14 21:17:30 +08:00
e23704d694
improve package gvalid by adding extra internal variable for error message template, changing :xxx varibale name to {xxx} format
2021-11-14 21:00:34 +08:00
e4ddeb6033
Improved import, by group improt.
2021-11-14 18:24:38 +08:00
4cdd98dbf5
Merge branch 'master' of https://github.com/gogf/gf
2021-11-14 17:47:34 +08:00
ce16dad88f
improve error handling for custom validation rule for package gvalid
2021-11-14 17:47:21 +08:00
b59ed1b943
Improved import, by group improt.
2021-11-14 15:37:24 +08:00
ea31af5364
Merge branch 'gogf:master' into master
2021-11-14 15:33:18 +08:00
ac2a95534e
Merge pull request #1474 from ehproject-teamer/master
...
add gtime example test
2021-11-14 12:29:51 +08:00
1a7450b9e9
v2.0.0-beta
2021-11-14 11:36:59 +08:00
5ef8280c31
fix: gfile scan dir example
2021-11-14 00:08:31 +08:00
15deeb19b0
go fmt
2021-11-13 23:48:47 +08:00
d13bbb7a04
merge conflict
2021-11-13 23:46:18 +08:00
f2dc26a7b3
Improved gfile example
2021-11-13 23:42:03 +08:00
299e16bed1
Improved import, by group improt.
2021-11-13 23:34:16 +08:00
d864120353
Improved import, by group improt.
2021-11-13 23:30:31 +08:00
be03b3cdda
Improved import, by group improt.
2021-11-13 23:23:55 +08:00
cfa3d817af
update gtime example
2021-11-13 23:16:18 +08:00
2c716a88c4
gring example function
...
1.New 2.Cap 3.Len
2021-11-12 22:52:41 +08:00
89d2a896f1
Update gtime_z_example_basic_test.go
2021-11-12 12:16:08 +08:00
56648638aa
Merge branch 'gogf:master' into master
2021-11-12 11:14:03 +08:00
741a790660
修改了示例的表现格式
2021-11-12 01:37:27 +08:00
684fa9b9c9
Merge pull request #1467 from 564104865/zhiwei
...
update cache
2021-11-11 23:53:45 +08:00
4e91039254
Update gcache_z_example_cache_test.go
2021-11-11 23:37:01 +08:00
195e167502
Update gcache_z_example_cache_test.go
2021-11-11 23:29:29 +08:00
01a50b06cb
Update gcache_z_example_cache_test.go
2021-11-11 22:32:08 +08:00
9b663b4c2b
Update gcache_z_example_cache_test.go
2021-11-11 22:18:01 +08:00
655426c322
Update gcache_z_example_cache_test.go
2021-11-11 21:19:33 +08:00
ae819ad44b
Merge branch 'master' of https://github.com/ehproject-teamer/gf
2021-11-11 17:51:33 +08:00
50ad3f0f26
go fmt
2021-11-11 17:49:43 +08:00
413a8be037
Merge branch 'gogf:master' into master
2021-11-11 17:45:49 +08:00
da659817c5
complete gtime example
2021-11-11 17:41:31 +08:00
6d37515e14
Optimization gfile example
2021-11-11 13:01:32 +08:00
ae27afaeb4
Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei
2021-11-10 16:46:20 +08:00
30f462288e
Update gcache_z_example_cache_test.go
2021-11-10 16:39:26 +08:00
4862505c5e
Merge branch 'gogf:master' into zhiwei
2021-11-10 16:37:56 +08:00
4b0a8f81d5
修改了ExampleEqual 示例的对比值
2021-11-10 01:47:03 +08:00
f889df8d50
go fmt 格式化
2021-11-10 01:27:59 +08:00
836be74d13
修改示例中结果为map输出的地方增加May
2021-11-10 01:12:22 +08:00
7f24f0637b
修改了部分示例
2021-11-10 01:03:04 +08:00
31d793fafb
improve example for package gqueue
2021-11-10 00:20:00 +08:00
be274478d0
Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei
2021-11-09 20:47:28 +08:00
5b8c91a877
Merge branch 'gogf:master' into zhiwei
2021-11-09 20:46:12 +08:00
95a4690e69
improve error feature for package gvalid
2021-11-09 17:50:14 +08:00
33694c8b47
fix: ExampleGetContentsWithCache intlog
2021-11-09 16:34:00 +08:00
14b7c591d0
fix "github.com/gogf/gf/v2/test/gtest"
2021-11-09 16:25:44 +08:00
72043d0657
Merge branch 'gogf:master' into processconflict
2021-11-09 16:11:07 +08:00
e0a0fcbde2
improve cache feature for package gdb
2021-11-09 16:06:31 +08:00
58dd8a29db
fix: gflie size example dir default size 4k
2021-11-09 16:04:47 +08:00
1f83c00ebf
fix: gfile size example fail
2021-11-09 15:49:00 +08:00
02e1d01f29
improve RuleFunc for package gvalid
2021-11-09 15:22:17 +08:00
e0db3c87cf
improve RuleFunc for package gvalid
2021-11-09 14:31:16 +08:00
903299728f
update Must Cache
2021-11-09 11:46:53 +08:00
c617ad6a04
Merge branch 'gogf:master' into zhiwei
2021-11-09 11:38:05 +08:00
814649e7a3
Merge branch 'master' of https://github.com/gogf/gf
2021-11-08 19:51:45 +08:00
d1b69142c4
improve unit testing case for package gcache
2021-11-08 19:51:32 +08:00
2d1593f78e
Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei
2021-11-08 12:12:15 +08:00
d61f7af60c
update cache adapter
2021-11-08 12:12:10 +08:00
65140d1293
Merge branch 'gogf:master' into zhiwei
2021-11-08 12:11:19 +08:00
85299cd447
Merge pull request #1466 from mingzaily/master
...
add examples for container gqueue
2021-11-07 21:53:24 +08:00
091df972f1
improve example for package gcache
2021-11-07 21:52:27 +08:00
748040fb0b
improve group router for package ghttp
2021-11-07 21:31:33 +08:00
df02ca764f
add size example for gqueue
2021-11-07 16:52:28 +08:00
6f64c26349
Merge branch 'gogf:master' into master
2021-11-07 16:40:20 +08:00
072355dc2c
Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei
2021-11-07 16:05:17 +08:00
3ca2cad449
improve gutil.Dump
2021-11-07 00:32:16 +08:00
05bb81cd71
Merge branch 'master' of https://github.com/gogf/gf
2021-11-07 00:16:52 +08:00
fd9246358a
Merge branch 'feature/gconv.ScanList' into develop
2021-11-07 00:16:26 +08:00
42c4b32720
add gconv.ScanList
2021-11-07 00:16:14 +08:00
2757647211
Revert "11"
...
This reverts commit 45787dd8e4 .
2021-11-06 20:31:47 +08:00
45787dd8e4
11
2021-11-06 20:31:16 +08:00
38b797b42f
finish example for gqueue
2021-11-06 16:27:17 +08:00
e8f6ebc154
Merge branch 'gogf:master' into master
2021-11-06 16:12:38 +08:00
e715ce0625
Merge pull request #1450 from DGuang21/feature-regex-example
...
add examples for package gregex
2021-11-06 11:35:15 +08:00
aceb586bef
Merge pull request #1461 from Evil-king/master
...
add examples for InitSet of package gset
2021-11-06 11:34:17 +08:00
15f9b69b36
fix
2021-11-06 06:38:28 +08:00
0aabb7d990
update package gstr
2021-11-06 04:41:08 +08:00
b036767fc0
📝 add example
2021-11-06 01:47:00 +08:00
b967cf6224
📝 add example
2021-11-06 01:16:51 +08:00
1a596fe84d
📝 add example
2021-11-06 00:54:10 +08:00
64fa8d5282
📝 add example
2021-11-06 00:49:15 +08:00
99d2186c8c
📝 add example
2021-11-06 00:06:56 +08:00
24f759e00e
📝 add example
2021-11-05 23:56:08 +08:00
66731c9c66
Merge pull request #1459 from visualsun/master
...
Create garray_z_example_sorted_str_test.go
2021-11-05 23:27:56 +08:00
e5ec9cd676
Merge pull request #1452 from 564104865/zhiwei
...
gcache Examples
2021-11-05 23:24:20 +08:00
e7b63839c8
Update garray_z_example_sorted_str_test.go
2021-11-05 19:31:11 +08:00
2511c378f2
Create garray_z_example_int_test.go
2021-11-05 17:02:28 +08:00
3de37873dc
Merge pull request #10 from gogf/master
...
pr from master
2021-11-05 15:02:25 +08:00
12514a0311
Update garray_z_example_sorted_str_test.go
2021-11-05 14:45:04 +08:00
8a9dd169e2
test: add gflie example
2021-11-05 14:30:50 +08:00
84046a060a
Package gstr's All Example
2021-11-05 10:50:15 +08:00
a27eec7752
Delete gstr_z_example_test.go
2021-11-05 10:48:13 +08:00
4539a9a4ab
修改gstr测试用例包名为gstr_test
2021-11-05 10:42:44 +08:00
cffa098373
更新gstr为gf-v2版本
2021-11-05 10:35:01 +08:00
c663a0d9c5
修改gstr测试用例
...
修改gstr测试用例的错误
2021-11-05 10:20:36 +08:00
5b83b2375e
Update gcache_z_example_cache_test.go
2021-11-05 09:41:49 +08:00
98d72fae25
Merge branch 'gogf:master' into zhiwei
2021-11-05 09:38:41 +08:00
041ebacb8c
添加gstr包的实例
2021-11-05 01:20:18 +08:00
4f2a22dd0e
Merge branch 'master' of https://github.com/gogf/gf
2021-11-05 01:15:30 +08:00
4acc0e9876
gconv.ScanList
2021-11-05 01:15:11 +08:00
7be24776d5
Merge branch 'develop' of https://github.com/gogf/gf into develop
2021-11-05 01:07:19 +08:00
485706a676
improve ScanList feature for package gdb
2021-11-05 01:07:06 +08:00
ea7d963f20
IntSet
2021-11-05 00:56:59 +08:00
613958a4b6
IntSet finish
2021-11-05 00:50:44 +08:00
44023ea91d
Merge pull request #1453 from Evil-king/master
...
gstrset Example Finish
2021-11-05 00:21:15 +08:00
ef7f7e35f8
update review
2021-11-05 00:04:24 +08:00
613a50428b
Update gcache_z_example_cache_test.go
2021-11-04 23:23:40 +08:00
3091f61a26
update ExampleStrSet_Remove
2021-11-04 22:26:17 +08:00
5776b2596d
Create garray_z_example_sorted_str_test.go
2021-11-04 22:17:32 +08:00
430102c995
update
2021-11-04 22:11:09 +08:00
2a2bb4f1e1
improve the example document
2021-11-04 21:39:28 +08:00
205243e8b9
update
2021-11-04 21:02:54 +08:00
d16ce643fd
Merge branch 'zhiwei' of https://github.com/564104865/gf into zhiwei
2021-11-04 20:58:19 +08:00
e94eb8f668
Merge branch 'gogf:master' into zhiwei
2021-11-04 20:56:02 +08:00
357084e788
update cache
2021-11-04 20:55:01 +08:00
9a757acc88
Merge pull request #1438 from danvinhe/bugfix/i1435
...
Bugfix/i1435
2021-11-04 20:38:58 +08:00
3fb1c07eac
Merge pull request #1454 from visualsun/master
...
Update garray_z_example_str_test.go
2021-11-04 20:29:33 +08:00
6050b14087
Update garray_z_example_str_test.go
2021-11-04 20:11:54 +08:00
58c1c1bb16
Merge pull request #1455 from huangqian1985/develop
...
Validator Rule Example
2021-11-04 19:33:06 +08:00
b6f6ab17f9
go fmt
2021-11-03 23:50:57 +08:00
7bcba437a0
update cache values
2021-11-03 23:44:16 +08:00
abf199bf61
Merge branch 'gogf:master' into zhiwei
2021-11-03 23:29:31 +08:00
9ea2db5c81
fix
2021-11-03 23:17:04 +08:00
7a6fb4a807
Merge branch 'master' of https://github.com/gogf/gf
2021-11-03 23:14:08 +08:00
c3a75f5568
logging content update for package gdb
2021-11-03 23:13:11 +08:00
c850c420fd
fixCi
2021-11-03 23:06:24 +08:00
e045aaaf07
Merge branch 'master' of https://github.com/gogf/gf into develop
2021-11-03 23:05:23 +08:00
0cd40caf0c
Merge branch 'gogf:master' into master
2021-11-03 22:57:44 +08:00
f2bb9d65c3
edit review
2021-11-03 22:49:30 +08:00
4e05795642
Modify variable name
2021-11-03 22:38:31 +08:00
1df52637e8
Merge pull request #1429 from osgochina/master
2021-11-03 22:38:21 +08:00
b83362cc2e
Update garray_z_example_str_test.go
2021-11-03 22:34:43 +08:00
274052511c
Complete the following verification rule example method
...
1.mac 2.url 3.domain 4.size 5.length 6.min-length 7.max-length 8.between 9.min 10.max 11.json 12.integer 13.float 14.boolean 15.regex
2021-11-03 22:20:05 +08:00
32bc1ec064
Merge pull request #1432 from danvinhe/hotfix/i1421
...
Hotfix/i1421
2021-11-03 22:08:30 +08:00
5fa62e02c6
Update garray_z_example_str_test.go
2021-11-03 18:08:44 +08:00
bf3c3367a6
Update garray_z_example_str_test.go
2021-11-03 17:14:49 +08:00
9c05682605
change some example for gqueue
2021-11-03 16:16:03 +08:00
8f090739d9
go fmt
2021-11-03 15:23:51 +08:00
7971177c58
newredis
2021-11-03 15:16:07 +08:00
5707763758
Merge branch 'gogf:master' into zhiwei
2021-11-03 15:07:32 +08:00
35a786d765
Update gdb_func.go
2021-11-03 15:05:25 +08:00
12fe41e34d
Merge branch 'master' into bugfix/i1435
2021-11-03 15:04:22 +08:00
5ffd362b6e
Update glog_logger.go
...
多了个空格
2021-11-03 15:02:21 +08:00
a423fba2a8
comment or be unexported
...
exported method Redis.UpdateExpire should have comment or be unexported
2021-11-03 14:59:28 +08:00
41d0832fa5
Merge branch 'master' into hotfix/i1421
2021-11-03 14:55:02 +08:00
5e7b0c9303
Merge branch 'master' of https://github.com/gogf/gf
2021-11-03 13:27:49 +08:00
0c43e7986f
improve function gutil.Dump/DumpWithType
2021-11-03 13:27:37 +08:00
bc1d76a796
add example for gqueue
2021-11-03 11:41:34 +08:00
6b9f72d973
📝 add example
2021-11-03 11:28:54 +08:00
d980cff663
📝 add example
2021-11-03 11:22:17 +08:00
7de69db707
232234
2021-11-03 10:16:41 +08:00
5e34aee2d7
example over
2021-11-03 00:49:06 +08:00
797719d8d5
Complete the following verification rule example method
...
1. passport 2.password 3.password2 4.password3 5.postcode 6.resident-id 7.bank-card 8.qq 9.ip 10.ipv4 11.ipv6
2021-11-02 23:47:25 +08:00
6c3aa6ede5
📝 add example
2021-11-02 20:08:15 +08:00
18459ec1bc
Merge pull request #1449 from mingzaily/master
...
Example for glist
2021-11-02 19:37:47 +08:00
e727788f42
Merge branch 'gogf:master' into master
2021-11-02 14:33:13 +08:00
3df7711e74
complete example for glist
2021-11-02 14:31:34 +08:00
c1f856fa8e
update
2021-11-02 13:27:54 +08:00
8ffc7699d6
Merge pull request #9 from gogf/master
...
pr from master
2021-11-02 11:25:49 +08:00
a3eff53c69
Modify "date" rule Example
2021-11-02 11:22:34 +08:00
56c12ad7c3
fix unit testing case for pakage gfile
2021-11-02 09:56:53 +08:00
77a0f59cd3
add automatic adding OmitNil option for data and where filtering if given struct name is defined like 'xxxForDao'
2021-11-02 09:55:37 +08:00
94768530cc
Complete the following verification rule example method
...
1. datetime 2.date-format 3.email 4.phone 5.phone-loose 6.telephone
2021-11-02 00:03:44 +08:00
79a233eb78
example&comment update
2021-11-01 19:46:39 +08:00
183d800f4c
📝 add example
2021-11-01 12:17:53 +08:00
191ad20436
Complete the following verification rule example method
...
1. date
2021-10-31 23:16:54 +08:00
c0c68d1e46
rename Println -> Print for package glog
2021-10-30 20:47:38 +08:00
ac6968edf1
improve Dump feature
2021-10-30 20:35:55 +08:00
e22e1d0e4a
remove function Println from package glog
2021-10-30 19:44:22 +08:00
42e27dd14c
add context parameter for package grpool
2021-10-30 18:09:58 +08:00
d817047c98
remove Logger interface from package gdb
2021-10-30 16:12:51 +08:00
e15cd6ae89
fix issue in package gcache
2021-10-30 16:00:38 +08:00
17e6063c5c
add neccessary parameter context for package gcron/gtimer
2021-10-30 15:36:10 +08:00
a8b2a2ff33
Merge remote-tracking branch 'origin/develop' into develop
2021-10-29 22:46:00 +08:00
4b3eb09492
Complete the following verification rule example method
...
1. required 2.required-if 3.required-unless 4.required-with 5.required-with-all 6.required-without 7.required-without-all 8.same 9.different 10.in 11.not-in
2021-10-29 22:44:35 +08:00
d1c09cb21d
完成以下校验规则示例方法
...
1. required 2.required-if 3.required-unless 4.required-with 5.required-with-all 6.required-without 7.required-without-all 8.same 9.different 10.in 11.not-in
2021-10-29 22:37:38 +08:00
1188793f8f
automatically add column prefix for where conditions
2021-10-29 16:57:56 +08:00
09b8df1818
add WherePrefix/WhereOrPrefix for gdb.Model
2021-10-29 15:49:08 +08:00
6192d32501
add LeftJoinOnField/InnerJoinOnField/InnerJoinOnField/FieldsPrefix/FieldsExPrefix for package gdb
2021-10-29 15:12:31 +08:00
a6a8d787e4
merge IgnoreEmptySliceWhere feature into OmitEmptyWhere
2021-10-29 10:50:14 +08:00
e5c6d3f777
fix issue in unit testing cases for package gjson
2021-10-28 23:46:24 +08:00
1bfa792ea9
fix context canceled error while propagate context from http.Request
2021-10-28 23:37:51 +08:00
8ef4f68215
add IgnoreEmptySliceWhere feature for package gdb; add OriginValueAndKind/OriginTypeAndKind functions for package internal/utils
2021-10-28 23:18:23 +08:00
493f5dcff2
remove unused functions for package gdb
2021-10-27 15:41:15 +08:00
2cf84e020f
add automatically detectting feature for 'in' attribute of parameters for package goai;add 'datetime' rule for package gvalid
2021-10-27 15:33:29 +08:00
e21bd9b4cb
Update gcron_schedule.go
2021-10-27 10:44:28 +08:00
ded94276a8
Merge branch 'master' into processconflict
2021-10-27 10:33:36 +08:00
a19ba3d530
add embedded struct fields overwrite feature for package internal/structs
2021-10-26 21:57:56 +08:00
e0674ee7fe
improve openapi implements
2021-10-25 21:23:47 +08:00
2481435829
improve openapi implements
2021-10-25 21:06:24 +08:00
e48b565e18
improve openapi implements
2021-10-25 20:36:09 +08:00
f6c2206b88
improve logging content field name from selected/updated to rows
2021-10-25 19:50:52 +08:00
4717e01708
replace gopkg.in/yaml.v2 with gopkg.in/yaml.v3
2021-10-25 19:17:56 +08:00
17861fc45d
add short tags for default for package goai
2021-10-25 14:25:35 +08:00
a92c31168a
add short tags for summary/description for package goai
2021-10-25 10:50:01 +08:00
940dcfb8c4
v2.0.0-alpha
2021-10-22 17:54:53 +08:00
8dd9483572
fix issue in unit testing case for package gview
2021-10-22 14:09:08 +08:00
4e7b33bde3
fix issue in unit testing case for package gview
2021-10-22 13:14:48 +08:00
977780736f
improve gutil.Dump
2021-10-21 22:07:43 +08:00
aacfa1bd96
add short typed tag mapping for summary/description for package goai;add suffix checks for request/response struct naming
2021-10-21 20:17:02 +08:00
862ef57e0f
fix unit testing cases
2021-10-21 19:25:39 +08:00
fa5499373a
replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg
2021-10-21 18:22:47 +08:00
f901f19714
Parameters of type gdb.Raw do not require special treatment
2021-10-15 17:45:30 +08:00
6bde7c61b4
openapi
2021-10-14 15:03:39 +08:00
085c887b33
openapi
2021-10-13 22:34:52 +08:00
920c97af79
openapi
2021-10-13 22:28:49 +08:00
f887c9f44b
improve package gmeta
2021-10-12 17:52:31 +08:00
18ceebeffd
filter key updates for stack information
2021-10-12 17:25:45 +08:00
854747574d
fix issue in package gcfg
2021-10-12 16:15:52 +08:00
7eb3b32b26
fix unit testing cases
2021-10-11 21:53:16 +08:00
54dd11f511
README update
2021-10-11 21:43:27 +08:00
1bc0635f8b
version 2
2021-10-11 21:41:56 +08:00
bea54b445e
add context for validation functions of package gvalid
2021-10-11 21:34:19 +08:00
bc735fee51
openapi
2021-10-11 20:39:13 +08:00
82175b5de9
rename gctx.Value/WithValue to CtxId/WithCtxId
2021-10-11 20:25:02 +08:00
cefa3638cf
openapi
2021-10-11 19:59:15 +08:00
cbfd92a21d
add common request structure feature support for openapi
2021-10-11 17:10:55 +08:00
310e178206
add common response structure feature support for openapi
2021-10-11 16:55:38 +08:00
e0c4f7ccbf
Fixed : #1421
2021-10-09 18:32:59 +08:00
17904bccd0
openapi
2021-10-08 21:23:30 +08:00
5b2f40a454
openapi
2021-10-08 21:16:47 +08:00
b1113c328a
openapi
2021-10-08 17:05:11 +08:00
26d823bd81
openapi
2021-10-08 16:32:40 +08:00
5a5809bd95
修复gini的bug。
...
当ini的配置值中含有"="时候,不能正确解析。
2021-10-08 16:17:58 +08:00
c225a15746
openapi
2021-10-08 16:02:53 +08:00
edd62f3b4f
openapi
2021-10-08 15:37:17 +08:00
73e4a69383
openapi
2021-10-08 14:44:10 +08:00
5e32e8868e
openapi
2021-10-08 11:42:28 +08:00
d430f2f52e
openapi
2021-10-08 11:40:47 +08:00
51dbd133a4
openapi generating feature
2021-10-06 21:51:21 +08:00
4eb48660df
openapi generating feature
2021-10-06 21:11:16 +08:00
d66d8585a2
openapi generating feature
2021-10-06 20:44:34 +08:00
89661301b0
fix issue for unit testing case for package ghttp
2021-10-06 20:16:18 +08:00
5d804987b9
add alias g.Meta for gmeta.Meta
2021-10-06 20:11:54 +08:00
892d3abf38
openapi generating feature
2021-10-06 19:52:19 +08:00
4a1a8c9fc5
openapi generating feature
2021-10-06 15:24:01 +08:00
18ede3ae1f
improve error information for package goai
2021-10-06 15:03:00 +08:00
9ed79e9e86
openapi generating for ghttp.Server
2021-10-06 14:52:29 +08:00
5a7555a6ec
fix issue in goai for recursive attribute
2021-10-06 14:45:29 +08:00
82d04d612b
fix openapi specification generating; improve handler type
2021-10-06 14:22:58 +08:00
9f2eeb23ba
print error stack in faltal error for ghttp.Server
2021-10-06 12:12:59 +08:00
c84e79a46d
improve swagger ui feature for package ghttp
2021-10-06 11:54:53 +08:00
337c2d0953
filter issue in internal/structs
2021-10-06 11:10:35 +08:00
71189c8fb0
improve converting performance for equal type converting
2021-10-03 00:58:57 +08:00
322f5933ad
add build-in swagger ui support for ghttp.Server
2021-10-03 00:22:06 +08:00
1e80dc71eb
add automatic generating for OpenApi specification for ghttp.Server routes
2021-10-02 22:34:39 +08:00
198a6c8e33
add package goai for OpenAPIv3 support
2021-10-02 18:54:06 +08:00
0fdb935c3d
add package goai for OpenAPIv3 support
2021-10-02 15:07:47 +08:00
dcafba8a2d
add package goai for OpenAPIv3 support
2021-10-02 14:52:28 +08:00
131214151c
add context for Client of package ghttp
2021-09-30 14:06:46 +08:00
dd4e08e88d
refract package gdb; add selected & affected count to logging
2021-09-29 20:39:02 +08:00
b7b4067973
fix issue in unit testing case of package internal/structs
2021-09-29 19:18:27 +08:00
02478371f2
fix issue missing org tag value retrieving when using struct in Fields for package gdb
2021-09-28 22:02:08 +08:00
750972e7c6
fix unit testing cases
2021-09-28 19:04:36 +08:00
a9d7dc68a3
remove usage of package gparser
2021-09-27 23:05:46 +08:00
0a828aaed3
Merge branch 'v2_release' into develop
2021-09-27 22:52:28 +08:00
f2bab9777d
comment update for package gvalid
2021-09-27 22:52:14 +08:00
993bf897cf
remove deprecated functions; refract package gjson
2021-09-27 22:47:39 +08:00
df09d8c604
refract package ghttp/gredis/glog
2021-09-27 21:27:24 +08:00
5904a1e7c0
refract package gredis
2021-09-26 23:22:32 +08:00
b826ed6b03
Merge branch 'gogf:master' into master
2021-09-24 10:25:38 +08:00
6eee72b336
refract package gredis
2021-09-23 21:23:22 +08:00
a2c5c577db
fix issue #1412
2021-09-23 19:29:20 +08:00
6fa0ad5793
gredis refract
2021-09-23 19:12:02 +08:00
2891c8e29d
Merge branch 'gogf:master' into master
2021-09-23 19:05:53 +08:00
c3b3258194
update dependencies clbanning/mxj,grokify/html-strip-tags-go,gopkg.in/yaml to stable version
2021-09-22 19:43:52 +08:00
ef0aeb363b
comment update for paxkage gcache; improve package gbuild
2021-09-22 19:29:08 +08:00
c843661dfd
Merge branch 'develop' of https://github.com/gogf/gf into develop
2021-09-22 19:12:44 +08:00
b2629b9bfa
comment update for package gtrace
2021-09-22 19:12:31 +08:00
ad2b3e6cc6
Merge branch 'master' of https://github.com/houseme/gf into develop
2021-09-22 19:04:22 +08:00
cbe704333a
[feature] upgrade opentelemetry version v1.0.0 map to string
2021-09-22 14:54:42 +08:00
45b45517c8
[feature] upgrade opentelemetry version v1.0.0
2021-09-21 23:53:03 +08:00
9d67cb4f34
[feature] upgrade opentelemetry version v1.0.0
2021-09-21 15:15:37 +08:00
fe2eccfda4
remove usage of package unsafe for package gtype/grand
2021-09-20 12:58:10 +08:00
81e54be0c1
readme update
2021-09-20 12:29:05 +08:00
2e49c33cc7
remove depecated functions from package ghttp
2021-09-19 23:13:53 +08:00
e01e8dd4a2
github ci action updates
2021-09-19 10:50:31 +08:00
a1297b0402
github ci action updates
2021-09-19 10:36:43 +08:00
53db88c630
comment update for package gsession
2021-09-19 10:18:58 +08:00
c99c13acd1
refract pacakge gcfg, adding adapter interface for pacakge gcfg
2021-09-19 10:01:09 +08:00
01a3dd1eb0
add function gerror.HasStack; rename all api* interfaces to i*
2021-09-17 19:26:56 +08:00
5383672d78
change returned parameter from interface{} to *gvar.Var for gsession.Sessio.Get; remove Get* function excluding Get for gsession.Session
2021-09-17 11:15:00 +08:00
28f70d52ee
add context parameter for all functions of package gcache
2021-09-17 10:48:08 +08:00
cfc1f8fbe4
use english doc
2021-09-17 09:27:31 +08:00
1455e30350
change returned value by Get* and Update/Remove functions from type interface{} to *gvar.Var for package gcache
2021-09-16 22:13:00 +08:00
b46e9bb68a
improve package gcache
2021-09-16 21:17:03 +08:00
55a9c0738b
improve package gcache, add GetVar*/RemoveVar/UpdateVar functions for package gcache
2021-09-16 20:57:59 +08:00
a72493f320
Merge branch 'master' into processconflict
2021-09-16 11:32:54 +08:00
0d9d7b8e04
Merge branch 'gogf:master' into master
2021-09-16 11:31:38 +08:00
101db282c2
fix issue #1401
2021-09-15 22:28:26 +08:00
ac78b2fa50
fix ci issue
2021-09-15 21:46:58 +08:00
e877eab033
fix ci issue
2021-09-15 21:21:29 +08:00
68e760d13a
fix issue @1380
2021-09-15 21:17:45 +08:00
c323256812
Merge branch 'master' into processconflict
2021-09-15 18:54:46 +08:00
26584cdbb4
Merge branch 'gogf:master' into master
2021-09-15 18:52:59 +08:00
64a5cedcdf
fix recover logic
2021-09-14 20:47:06 +08:00
40fedea408
Merge branch 'master' of https://github.com/gogf/gf
2021-09-14 20:25:33 +08:00
ffedfb7c0c
improve package gproc for customize environment variables when creating process
2021-09-14 20:25:23 +08:00
cc08ceb797
improve package gring; remove function LockIteratorNext/LockIteratorPrev from package gring
2021-09-14 20:15:21 +08:00
053e4f2fc8
Merge pull request #1395 from houseme/master
...
[feature] upgrade opentelemetry v1.0.0-RC3
2021-09-14 20:15:01 +08:00
727f58a24b
remove usage of gconv.Unsafe* functions internally to avoid unexpected errors
2021-09-14 19:30:20 +08:00
99b6085235
Merge branch 'master' of https://github.com/gogf/gf
2021-09-13 16:43:20 +08:00
006fb79967
improve package gjson; replace fmt.Errorf to gerror; improve examples for package gdb
2021-09-13 16:43:09 +08:00
5820e6ebe1
Merge branch 'gogf:master' into master
2021-09-13 15:11:01 +08:00
0776c35ddb
upgrade toml version 0.4.1
2021-09-08 05:43:04 +08:00
471a37ef00
upgrade toml version 0.4.1
2021-09-08 05:41:44 +08:00
1242733735
[feature] upgrade opentelemetry v1.0.0-RC3
2021-09-04 14:27:38 +08:00
a6c9a7a944
fix test
2021-09-03 19:35:19 +08:00
e782facdf3
Merge branch 'gogf:master' into master
2021-09-03 14:39:58 +08:00
077a41911b
Merge pull request #1390 from houseme/master
...
fix #1389
2021-09-03 10:54:03 +08:00
cc60bc9dab
fix issue printing to stdout using fmt.Fprintf for package glog
2021-09-01 16:14:17 +08:00
425ca8aa3e
improve process comminucation folder creating for package gproc
2021-09-01 15:02:58 +08:00
73d2b7ed06
fix issue #1387
2021-08-30 22:26:02 +08:00
0048e2c8c4
improve package gstr
2021-08-30 14:29:04 +08:00
adee4ac8dd
fix #1389
2021-08-29 12:23:22 +08:00
549adf6487
improve unit testing case for package gdb
2021-08-27 20:35:35 +08:00
b5502c5580
revert and use
2021-08-27 20:26:07 +08:00
46bf669cdd
Merge branch 'master' of https://github.com/gogf/gf
2021-08-27 20:16:41 +08:00
fa7a3e987d
improve With feature for package gdb
2021-08-27 20:16:29 +08:00
b316b9c073
example updates for package gcache
2021-08-27 01:01:41 +08:00
5b57c35522
comment updates for package gcache
2021-08-27 00:01:15 +08:00
b9a07b104a
Update gcron_schedule_test.go
...
add test to slash template parse
2021-08-26 10:58:54 +08:00
c7b379e53f
Merge branch 'master' into processconflict
2021-08-26 09:33:23 +08:00
e0a3233ea3
improve package gcron
2021-08-26 00:11:27 +08:00
1b588b14d8
Merge branch 'master' of https://github.com/gogf/gf
2021-08-25 23:46:16 +08:00
2c839db941
Merge pull request #1372 from gzhmt-developer/master
...
fix tcp http demo error content-length
2021-08-25 23:42:30 +08:00
f9eaa8f930
fix issue of nested transaction missing in function operations for package gdb
2021-08-25 22:31:59 +08:00
59397fd8a5
add buildin function add/minus/times/divide for package gview
2021-08-25 20:00:53 +08:00
6be582355c
improve DB.Close for package gdb
2021-08-25 10:58:29 +08:00
ac73851f78
Merge branch 'master' into processconflict
2021-08-25 09:28:04 +08:00
257897763d
Merge branch 'master' of https://github.com/gogf/gf
2021-08-25 00:54:47 +08:00
29d50994ae
add function Close for DB for package gdb
2021-08-24 22:59:25 +08:00
b129ee3f04
fix issue in unit testing case for package ghttp
2021-08-24 21:35:49 +08:00
a47699bf6e
fix issue in unit testing case for package gjson
2021-08-24 21:34:14 +08:00
66b8b591df
fix issue in missing import for package gcode
2021-08-24 21:31:15 +08:00
7b47fe96dd
update version of third-party redigo from v2.0.0+incompatible to v1.8.5
2021-08-24 21:22:58 +08:00
abc8e62d58
add package gcode and improve error implements for package gerror
2021-08-24 21:18:59 +08:00
22e3fddf8d
feat(fix bug , add nexttime feature):
...
1. fix bug: "Mon Jul 9 23:35 2012", "0 0 0 * Feb Mon/2". wo should get 1,3,5,7
2. add function to get the next run time
2021-08-23 23:12:16 +08:00
ef36cf8446
fix issue in example of package gjson
2021-08-20 23:15:48 +08:00
c5345239fc
improve logging content for package gcron
2021-08-20 15:49:45 +08:00
a229960218
add context id feature for package gctx/glog
2021-08-20 15:44:08 +08:00
43180ef239
improve package gcron
2021-08-20 14:09:15 +08:00
e10240bd7c
improve package gcron
2021-08-20 11:52:22 +08:00
a0ef6fce81
add bacth registering function Map for package ghttp
2021-08-19 20:59:08 +08:00
314bee2b4e
remove context key printing into logging content for context feature of package glog
2021-08-19 15:35:41 +08:00
050c93ee8d
Merge branch 'develop' of https://github.com/gogf/gf
2021-08-19 14:12:04 +08:00
feefcc98ef
improve condition parameter of struct by sequence for package gdb
2021-08-19 14:11:28 +08:00
8f4ce91361
improve condition parameter of struct by sequence for package gdb
2021-08-19 14:09:31 +08:00
f03f56ba4e
improve gconv.Struct for map attribute converting
2021-08-19 11:28:25 +08:00
457d552fa0
add UnmarshalJSON interface support for package gconv
2021-08-17 16:51:29 +08:00
be2fcf7f57
add UnmarshalJSON interface support for package gconv
2021-08-17 16:30:47 +08:00
ad6c4f5245
improve session storage for package gsession
2021-08-16 21:47:45 +08:00
db621e38d9
improve ServeFile/ServeFileDownload for package ghttp
2021-08-16 20:30:58 +08:00
170af1ab00
Merge pull request #1374 from wangle201210/develop
...
add func SetWriterColorEnable for file log color
2021-08-15 23:52:10 +08:00
31ef4e7b5a
fmt
2021-08-13 13:27:43 +08:00
f56f689970
fmt
2021-08-13 13:24:28 +08:00
17b73e7cb3
add func SetWriterColorEnable for file log color
2021-08-13 13:20:33 +08:00
903f29a824
add OmitNil feature for package gdb
2021-08-13 11:28:47 +08:00
12f2193963
improve handler feature for package glog
2021-08-12 22:14:31 +08:00
13ecbc263e
improve handler feature for package glog
2021-08-12 21:58:06 +08:00
7b9888c004
add FieldCount/FieldSum/FieldMax/FieldMin/FieldAvg functions for gdb.Model
2021-08-12 19:42:44 +08:00
91cd4f96f0
Update gtcp_conn.go
2021-08-12 10:50:46 +08:00
95a44122dd
comment update for package glog
2021-08-12 10:47:05 +08:00
2bd76dfdde
go fmt code
2021-08-12 09:35:57 +08:00
26895294f9
Merge pull request #1 from gzhmt-developer/ansionfor-patch-1
...
fix tcp demo error content-length
2021-08-12 00:23:04 +08:00
4cd4559784
fix tcp demo error content-length
2021-08-12 00:21:36 +08:00
3fc96f2bd0
add package gctx
2021-08-11 13:20:00 +08:00
91dd9e2bf9
auto update value of time field if given time value is zero for package gdb
2021-08-10 20:30:32 +08:00
9c5642f141
fix issue in border value checks for gstr.CompareVersion/CompareVersionGo
2021-08-10 19:29:54 +08:00
00f0a743fc
add function TestDataContent for package gdebug
2021-08-10 17:20:15 +08:00
232751e3db
improve context key and caller path&func outputs for logger of package glog
2021-08-10 15:46:40 +08:00
1c600d5b20
revert ORM logger from interface to glog.Logger
2021-08-10 15:36:15 +08:00
9bc3b44a61
version updates
2021-08-09 19:30:16 +08:00
83729f18ad
Merge branch 'develop'
2021-08-09 19:29:46 +08:00
fdb6e70322
comment update for package glog
2021-08-09 19:29:11 +08:00
efaf3d591c
comment update for package glog
2021-08-09 19:25:23 +08:00
ef50eb6d6b
comment update for package ghttp
2021-08-09 19:16:37 +08:00
fb5a1f2306
Merge pull request #1369 from wangle201210/develop
...
fix print log on windows
2021-08-09 19:16:24 +08:00
9d4382d12e
fmt
2021-08-08 16:58:15 +08:00
9ee76ecc93
fix print log on windows
2021-08-08 16:23:25 +08:00
0d2ca48d16
update comment and standardize const naming for package gproc
2021-08-08 14:05:27 +08:00
f1857df5e2
comment update for package glog
2021-08-08 13:56:26 +08:00
fc1dfb7ff9
comment update;standardize const naming for package gtcp/gudp
2021-08-08 13:10:21 +08:00
dc407bf293
merge develop
2021-08-07 12:04:31 +08:00
4eb057227c
add SizeFormat function for package gfile; add more internal logging for rotation feature for pacakge glog
2021-08-07 11:59:30 +08:00
9cd944fd77
improve time maintaining feature for package gdb
2021-08-07 11:01:15 +08:00
cd3593182a
improve package gerror/ghttp for error code handling
2021-08-07 10:44:57 +08:00
0f6820df9e
add more unit testing case for package gtimer
2021-08-06 14:13:37 +08:00
0e158903c2
improve package gtimer for priority checks
2021-08-06 12:08:49 +08:00
214d0513e5
Merge branch 'develop' of https://github.com/gogf/gf into develop
2021-08-05 19:15:31 +08:00
75ca866991
fix issue in ghttp.Server
2021-08-05 19:15:18 +08:00
f22aa1b5d6
Merge pull request #1361 from jroam/fixbug-garray
2021-08-05 13:09:31 +08:00
00d7ee93b2
improve package gerror
2021-08-05 11:40:31 +08:00
537cbf983e
edit some function annotations
2021-08-04 23:35:29 +08:00
4c54b1cfbc
improve errcode feature for package gerror
2021-08-04 20:50:45 +08:00
e9ea58df64
Merge branch 'master' of https://github.com/gogf/gf
2021-08-04 13:29:17 +08:00
65fff6feae
version updates
2021-08-04 13:29:06 +08:00
dbded5e753
Merge pull request #1365 from stardemo/master
...
Update Readme ,Github Action badge
2021-08-04 13:15:02 +08:00
3043645605
Update Readme ,Github Action badge
2021-08-03 23:29:34 +08:00
685bf56a30
fix issue #1325
2021-08-03 22:21:20 +08:00
a4497ed547
improve gdb.Modle for where holder
2021-08-03 21:32:05 +08:00
28cb0bef25
change logger of DB from glog.Logger to interface Logger
2021-08-03 20:34:26 +08:00
114cdb2351
improve package gtimer
2021-08-03 19:37:25 +08:00
a2bb8ad2f2
add more unit testing case for package gdb
2021-08-02 21:13:00 +08:00
5a4de52900
fix invalid separator char in packing with prefix folder string in OS widnows for package gres
2021-08-02 19:58:04 +08:00
ff70e54e3e
fix unit testing case for package gtrace
2021-08-02 09:50:44 +08:00
fddc21670a
add condition and order-by feature for with tag feature for package gdb
2021-08-02 00:38:56 +08:00
f02372cf58
improve package gvalid
2021-08-01 23:50:44 +08:00
ab5f809074
go.sum updates
2021-08-01 22:13:20 +08:00
121c1a0125
Merge branch 'develop' of https://github.com/gogf/gf into develop
2021-08-01 22:13:00 +08:00
7678540270
add bail rule for package gvalid
2021-08-01 22:12:44 +08:00
248e6ff134
bugfix garray Sort
2021-08-01 15:19:48 +08:00
839ebd5b51
Merge pull request #1360 from houseme/master
...
Update go.mod
2021-08-01 11:29:36 +08:00
fa64df6f91
improve package gdb/glog
2021-08-01 10:33:33 +08:00
0acd118c03
add ModelHandler feature for package gdb
2021-08-01 10:17:03 +08:00
2b5244a54b
unit testing cases update for package gredis/glog
2021-08-01 09:45:46 +08:00
2472dd5fac
github action updates
2021-08-01 09:33:12 +08:00
5899f676f7
Merge pull request #1347 from stardemo/develop
...
add basic action scripts
2021-08-01 09:17:31 +08:00
bb57dc1ae7
improve request context feature for package ghttp
2021-08-01 09:17:37 +08:00
5a6c2c27df
inject Request object into context
2021-07-30 17:17:13 +08:00
9f096fc63d
improve error code for package gerror
2021-07-30 16:21:45 +08:00
4267aadd78
remove controller feature from package ghttp
2021-07-30 15:15:44 +08:00
ef77a54c7e
improve OmitEmpty feature for package gdb; mark package gmvc deprecated
2021-07-30 14:58:23 +08:00
afb0af4afd
add example for package gvalid
2021-07-30 11:29:48 +08:00
9be92cc3d4
garray代码规范化
2021-07-28 22:18:06 +08:00
15aabfb4e7
Update go.mod
...
update otel v1.0.0-RC1 to otel v1.0.0-RC2
2021-07-28 21:32:08 +08:00
c83e899f1f
add go version matrix
2021-07-22 09:29:26 +08:00
ebe90dcaa8
fix issue in Cache Penetration for cache feature of package gdb
2021-07-21 19:24:16 +08:00
1c3ae11eba
Update go.yml
2021-07-21 11:18:10 +08:00
b718aa88a2
add report && i386 test
2021-07-21 00:02:15 +08:00
6240c3d90b
disabled error test case to test action
2021-07-20 23:35:07 +08:00
c78f9d19f5
Update go.yml
2021-07-20 23:26:53 +08:00
0ddacdd7e2
add error code for components
2021-07-20 23:02:02 +08:00
f8486474aa
fix scripts path
2021-07-19 23:23:24 +08:00
906c54ce61
add basic action scripts
2021-07-19 23:20:51 +08:00
f72d991c36
rename attribute names from lower-camel case to upper-camel case
2021-07-19 20:06:44 +08:00
528f0e5434
Merge branch 'feature/new-register-type' into develop
2021-07-19 19:41:09 +08:00
88009ee278
fix issue #1341
2021-07-15 22:19:00 +08:00
b192b7dd60
remove internal logging for package gtimer
2021-07-15 21:46:56 +08:00
03d51bd18c
add internal logging for package gtimer
2021-07-15 21:40:26 +08:00
5c6c932a75
merge master
2021-07-15 21:23:36 +08:00
92c3c136f9
improve color feature for package glog
2021-07-15 21:20:29 +08:00
5069436fd2
Merge pull request #1346 from goflyfox/dev
...
update pgsql pri error #1340
2021-07-15 21:18:52 +08:00
141ba2e951
update pgsql pri error #1340
2021-07-15 14:53:21 +08:00
fae4dea37a
improve color feature for package glog
2021-07-15 13:31:32 +08:00
860b22aba4
Merge pull request #1312 from wangle201210/develop
...
add log level prefix color
2021-07-15 09:16:27 +08:00
30dbccf99e
输出对应err
2021-07-14 21:28:23 +08:00
9b2497bc57
Merge branch 'develop-up' into develop
...
* develop-up: (38 commits)
revert gerror usage for package gvalid
unify error package to gerror
add CtxStrict feature for package gdb
rename constants of package gpage from skake to upper camel case
add context for intlog
improve Record/Result converting for package gdb
add context for intlog/gsession;improve struct/structs converting for package gconv
unify command or enviroment key names for packages
improve details for package glog
add file configuration support for logger in ghttp.Server
version updates
add more unit testing cases for package ghttp
add automatic fields mapping and filtering for Model.Where statements
improve Order feature for package gdb
improve function Increment/Decrement for package gdb
add auto fields filtering feature for function Scan of package gdb; mark funtcion Struct/Structs deprecated for gdb.Model
improve record converting for package gdb
improve transaction feature for package gdb
improve caller path filtering for package gdebug
improve caller path filtering for package gdebug
...
# Conflicts:
# os/glog/glog_logger.go
# os/glog/glog_logger_config.go
# os/glog/glog_logger_level.go
2021-07-14 21:12:18 +08:00
0140808460
add handler extension feature for package ghttp
2021-07-13 23:01:31 +08:00
84aa30d9c2
允许日志文件中添加颜色
2021-07-13 22:45:35 +08:00
bc724deb5e
日志内容区分文件和控制台输出
2021-07-13 21:43:07 +08:00
fbfc23211c
fix issue in Counter of package gdb
2021-07-13 19:37:16 +08:00
3d4d3a763a
comment update for package gfsnotify
2021-07-12 22:05:03 +08:00
046749566d
update sql of unit testing case for package gdb
2021-07-08 23:06:58 +08:00
3b1b8a8306
Merge branch 'master' of https://github.com/gogf/gf
2021-07-08 22:44:29 +08:00
5e92747737
fix issue #1291
2021-07-08 22:44:16 +08:00
82ad7e2acc
add more unit testing case for package gdb
2021-07-08 22:08:45 +08:00
2d319d0856
update sql of unit testing cases for package gdb
2021-07-08 21:46:21 +08:00
c060904f3f
Merge pull request #1328 from lgyaxx/patch-1
...
Update gdb_model_fields.go
2021-07-08 21:18:42 +08:00
a63c4b6441
add more unit testing case for package gdb
2021-07-08 21:06:49 +08:00
9df860a202
fix issue #1292
2021-07-08 21:02:36 +08:00
2a1634fd6f
Update gdb_model_fields.go
...
annotation typo fix
2021-07-08 15:42:51 +08:00
2970864158
fix issue #1240
2021-07-06 21:18:26 +08:00
8e76d7a8ed
improve function TableFileds for gussing table name from table string;add overwrote function DoInsert for mssql/pgsql/oracle/sqlite for unsupported features
2021-07-06 20:59:09 +08:00
50e5dd5bd0
fix issue in fields filtering for table name with as statement
2021-07-06 13:14:33 +08:00
7e2605188d
improve session variable map in template parsing
2021-07-06 09:58:25 +08:00
e5ae1cb85c
improve session variable map in template parsing
2021-07-06 09:53:35 +08:00
1e78734f2c
remove gf cli from basic framework
2021-06-30 20:43:49 +08:00
d5fad88c56
gf cli updates
2021-06-30 20:16:49 +08:00
35a81b868f
gf cli updates
2021-06-30 20:08:25 +08:00
84355c1ddd
gf cli updates
2021-06-30 20:07:46 +08:00
012121ea77
gf cli updates
2021-06-30 20:00:50 +08:00
1e628b9edb
move command tool from repo gf-cli to sub folder
2021-06-30 00:15:52 +08:00
bfdeb6c4f5
log color兼容win环境
2021-06-29 21:05:46 +08:00
c42a9d6e50
Merge pull request #1316 from qinyuguang/otel
...
Otel
2021-06-29 13:05:38 +08:00
083e32fd9e
otel version bump to v1.0.0-RC1
2021-06-28 13:36:37 +08:00
2a350fd3ab
merge develop
2021-06-28 13:15:40 +08:00
03928f1977
add logging level prefix with color or not config
2021-06-28 00:58:35 +08:00
a2771c7558
format code
2021-06-28 00:23:25 +08:00
968e1db94d
add log level prefix color
2021-06-28 00:00:44 +08:00
bb0a3e09d6
revert gerror usage for package gvalid
2021-06-26 18:44:59 +08:00
d109706ad3
unify error package to gerror
2021-06-26 18:34:26 +08:00
b958689264
add CtxStrict feature for package gdb
2021-06-26 18:20:55 +08:00
859ea150ed
rename constants of package gpage from skake to upper camel case
2021-06-26 17:00:32 +08:00
91ca79b300
add context for intlog
2021-06-26 16:51:26 +08:00
8210f40469
improve Record/Result converting for package gdb
2021-06-26 16:46:36 +08:00
50ffaef33f
add context for intlog/gsession;improve struct/structs converting for package gconv
2021-06-26 16:23:54 +08:00
c25f88293b
unify command or enviroment key names for packages
2021-06-26 12:08:18 +08:00
025cdd66c5
improve details for package glog
2021-06-26 11:25:54 +08:00
237f172ae5
add file configuration support for logger in ghttp.Server
2021-06-26 11:18:44 +08:00
5ef4ef61f0
Merge pull request #1280 from imloama/develop
2021-06-11 09:50:17 +08:00
b935a8c652
fix merge conflicts for gdb_driver_pgsql
2021-06-08 09:20:22 +08:00
9ee0f04e58
add command feature for package gcmd
2021-05-26 22:08:13 +08:00
531519e8f2
Merge pull request #8 from gogf/master
...
mr from master
2021-05-07 09:53:15 +08:00
f3983cd6b7
feat: pg查询表字段时获取字段描述信息
2021-04-28 14:51:40 +08:00
799e8214f8
Merge remote-tracking branch 'upstream/master'
2020-12-28 11:06:38 +08:00
e3b8f374e5
Merge pull request #1 from gogf/master
...
pr from gf
2020-07-17 16:27:51 +08:00