v2.6.0
版本发布时间: 2023-12-18 21:09:22
gogf/gf最新发布版本:v2.7.2(2024-06-26 10:18:42)
What's Changed
- fix g.Wait not support OS Signal #2752 by @xyqweb in https://github.com/gogf/gf/pull/2768
- fix gf gen ctrl import by @oldme-git in https://github.com/gogf/gf/pull/2771
- fix issue #2775 by @windvalley in https://github.com/gogf/gf/pull/2777
- add default time check for converting functions of gtime.Time by @LonelySally in https://github.com/gogf/gf/pull/2755
- add
BuiltVersion
for packagegbuild
, auto inject build version intogbuild.BuiltVersion
by @hailaz in https://github.com/gogf/gf/pull/2754 - improve import path generating for command gen ctrl by @gqcn in https://github.com/gogf/gf/pull/2781
- upgrade package
gopkg.in/yaml.v3
to latest stable versionv3.0.1
by @gqcn in https://github.com/gogf/gf/pull/2783 - improve command
init
andgen ctrl
by @gqcn in https://github.com/gogf/gf/pull/2785 - feat: add Diff feature to gmap by @LonelySally in https://github.com/gogf/gf/pull/2774
- fix issue #2782 that orm builder generate incorrect sql in some case by @Agzer0 in https://github.com/gogf/gf/pull/2787
- feat: improve watch for polaris registrar by @houseme in https://github.com/gogf/gf/pull/2788
- fix issue #2482 by @gqcn in https://github.com/gogf/gf/pull/2789
- add
NeverDone
function for packagegctx
that creates and returns a never done ctx by @gqcn in https://github.com/gogf/gf/pull/2784 - fix
gen ctrl
import path by @hinego in https://github.com/gogf/gf/pull/2800 - expose
iClient
asIClient
in generated sdk for commandgen ctrl
by @gqcn in https://github.com/gogf/gf/pull/2804 - fix issue #2816 by @windvalley in https://github.com/gogf/gf/pull/2817
- refactor: add default client instance for contrib/sdk/httpclient by @windvalley in https://github.com/gogf/gf/pull/2814
- change minimum golang version from v1.15 to v1.18 by @gqcn in https://github.com/gogf/gf/pull/2820
- fix issue #2803 by @gqcn in https://github.com/gogf/gf/pull/2805
- add generic support for http routes registering #2227 #2457 by @gqcn in https://github.com/gogf/gf/pull/2807
- fix issue #2570 by @gqcn in https://github.com/gogf/gf/pull/2819
- fix: disable map tag
summary
anddescription
from the OpenAPIOperation
toPathItem
by @WankkoRee in https://github.com/gogf/gf/pull/2823 - feat: Using sqlite CGO is for building a 32-bit Windows operating system by @horizon220222 in https://github.com/gogf/gf/pull/2743
- fix: psgql tx unsupport LastInsertId by @hailaz in https://github.com/gogf/gf/pull/2815
- Feat:upgrade redis v9 by @houseme in https://github.com/gogf/gf/pull/2825
- Bump golang.org/x/text from 0.3.8-0.20211105212822-18b340fc7af2 to 0.3.8 in /contrib/drivers/sqlitecgo by @dependabot in https://github.com/gogf/gf/pull/2835
- Bump golang.org/x/net from 0.0.0-20211112202133-69e39bad7dc2 to 0.7.0 in /contrib/drivers/sqlitecgo by @dependabot in https://github.com/gogf/gf/pull/2834
- Update README for minimum go version requirement by @zcyc in https://github.com/gogf/gf/pull/2833
- add more ut case for package goai by @gqcn in https://github.com/gogf/gf/pull/2843
- fix gf gen service remove all comments. by @oldme-git in https://github.com/gogf/gf/pull/2845
- improve command
gen ctrl
for api parsing and interface file generating by @gqcn in https://github.com/gogf/gf/pull/2836 - improve data converting for
DB.DoInsert/DoUpdate
by @gqcn in https://github.com/gogf/gf/pull/2830 - Add gconv custom converter feature. by @joy999 in https://github.com/gogf/gf/pull/2828
- improve comment replacement regex pattern for command
gen service
by @gqcn in https://github.com/gogf/gf/pull/2846 - fix issue in
SliceMap/Maps
for packagegconv
when nil value in map of slice item by @gqcn in https://github.com/gogf/gf/pull/2857 - fix(ghttp): fix access log info format by @stardemo in https://github.com/gogf/gf/pull/2853
- fix: marked gcode.CodeInternalPanic for panic by @LonelySally in https://github.com/gogf/gf/pull/2860
- fix generic check with slice for ghttp by @WankkoRee in https://github.com/gogf/gf/pull/2850
- it returns error when
Scan
to a none empty slice with emptyResult
for packagegdb
by @gqcn in https://github.com/gogf/gf/pull/2858 - improve converter feature for package
gconv
by @gqcn in https://github.com/gogf/gf/pull/2869 - Fix empty map or struct convert to another map will return error. by @joy999 in https://github.com/gogf/gf/pull/2863
- improve support for generic router registering by @gqcn in https://github.com/gogf/gf/pull/2877
- version v2.5.2 by @gqcn in https://github.com/gogf/gf/pull/2878
- rewrite gmutex with sync.RWMutex by @joy999 in https://github.com/gogf/gf/pull/2883
- improve packed project template for command init by @gqcn in https://github.com/gogf/gf/pull/2885
- fix typo "Upadte" -> "Update" by @gqcn in https://github.com/gogf/gf/pull/2906
- add
AdapterContent
implements forgcfg.Adapter
by @gqcn in https://github.com/gogf/gf/pull/2892 - fix: OpenAPI cannot correctly identify the file type under the canoni… by @wlynxg in https://github.com/gogf/gf/pull/2898
- improve error stack configuration for package gerror, add framework error stack filter for package glog by @gqcn in https://github.com/gogf/gf/pull/2918
- fix(cmd): Fix gf build examples by @lingcoder in https://github.com/gogf/gf/pull/2917
- docs: fix code comment err in Model Join case by @BugKillerPro in https://github.com/gogf/gf/pull/2884
- fix:
gutil.IsSlice
judgment logic error by @wlynxg in https://github.com/gogf/gf/pull/2910 - fix: multiple interfaces cause the original type to be inaccessible by @wlynxg in https://github.com/gogf/gf/pull/2915
- ORM add function: LeftJoinOnFields,RightJoinOnFields,InnerJoinOnFields by @oldme-git in https://github.com/gogf/gf/pull/2921
- fix: gjson encode to string expect inconformity(issue 2520) by @wlynxg in https://github.com/gogf/gf/pull/2928
- add structure logging handler for package glog by @gqcn in https://github.com/gogf/gf/pull/2919
- change interface
ConvertDataForRecord
toConvertValueForField
for package gdb by @gqcn in https://github.com/gogf/gf/pull/2916 - add cluster mode and tls configuration support for package gredis by @joy999 in https://github.com/gogf/gf/pull/2936
- improve join feature for package gdb by @gqcn in https://github.com/gogf/gf/pull/2929
- test: add unit tests regarding issue 2901 by @wlynxg in https://github.com/gogf/gf/pull/2930
- fix codes due to static codes analysis by @hailaz in https://github.com/gogf/gf/pull/2935
- improve trace span generating for package gctx and http tracing content for package ghttp by @will0306 in https://github.com/gogf/gf/pull/2937
- improve signal listening for package
grpcx/ghttp/gproc
by @gqcn in https://github.com/gogf/gf/pull/2942 - add new function
g.Go
by @gqcn in https://github.com/gogf/gf/pull/2943 - version v2.5.3 by @gqcn in https://github.com/gogf/gf/pull/2945
- improve
g.Go
by @gqcn in https://github.com/gogf/gf/pull/2956 - feat: jaeger package will be removed in v2.6.0. by @houseme in https://github.com/gogf/gf/pull/2946
- feat: upgrade action/checkout to v4 by @houseme in https://github.com/gogf/gf/pull/2948
- upgrade dependence
github.com/apolloconfig/agollo/v4
version fromv4.1.1
tov4.3.1
for packagecontrib/config/apollo
by @hailaz in https://github.com/gogf/gf/pull/2949 - add ut cases for command
gen dao
by @gqcn in https://github.com/gogf/gf/pull/2958 - Make GTime support multiple formats by @bigger-boss in https://github.com/gogf/gf/pull/2933
- fix: gutil.IsMap judgment logic error by @wlynxg in https://github.com/gogf/gf/pull/2953
- fix(gutil): panic when field is []byte(BINARY in mysql) by @laushunyu in https://github.com/gogf/gf/pull/2957
- improve example cases for package gi18n by @hailaz in https://github.com/gogf/gf/pull/2970
- feat: Preserve original file permissions & Default copy permissions c… by @wlynxg in https://github.com/gogf/gf/pull/2969
- fix isue #2976, to be compatible with bad response type definition for strict route function by @gqcn in https://github.com/gogf/gf/pull/2977
- add consul config adapter by @monchickey in https://github.com/gogf/gf/pull/2964
- add
in:header
tag cache for http request to enhance performance by @hailaz in https://github.com/gogf/gf/pull/2923 - fix: improve specification version by @houseme in https://github.com/gogf/gf/pull/2987
- improve address configuration for grpc server by @gqcn in https://github.com/gogf/gf/pull/2982
- Add consul config adapter usage example. by @monchickey in https://github.com/gogf/gf/pull/2988
- allowing use printToStdout, printToFile and printToWriter at the same time for Logger of package glog by @dabubus in https://github.com/gogf/gf/pull/2990
- add function
Partition
for Model of package gdb by @arieslee in https://github.com/gogf/gf/pull/2989 - add
List2/List3/ListAndTrim2/ListAndTrim3
functions for packagegstr
by @gqcn in https://github.com/gogf/gf/pull/2986 - fix issue #2890 by @gqcn in https://github.com/gogf/gf/pull/3002
- add direct service address support for grpc client by @gqcn in https://github.com/gogf/gf/pull/2991
- feat: Migrate the service call tracing to use
otlphttp
orotlpgrpc
for reporting by @houseme in https://github.com/gogf/gf/pull/3001 - temporaryly close the testing of package
kubecm
to avoid disk unavailable issue by @hailaz in https://github.com/gogf/gf/pull/3007 - fix issue reading resource from manage in function New of package gres by @hailaz in https://github.com/gogf/gf/pull/2961
- fix issues #2980 by @oldme-git in https://github.com/gogf/gf/pull/2994
- fix issue #2904 by @gqcn in https://github.com/gogf/gf/pull/3004
- fix issue #2907 by @gqcn in https://github.com/gogf/gf/pull/3005
- fix issue gconv struct slice/map of json.RawMessage (#3006) by @kele1997 in https://github.com/gogf/gf/pull/3008
- enable go cache for ci, coverage of ut testing is only available after merge of pr by @hailaz in https://github.com/gogf/gf/pull/3011
- ci: Update action script to remove inactive labels by @lingcoder in https://github.com/gogf/gf/pull/3013
- add service registry implements using
nacos
by @joy999 in https://github.com/gogf/gf/pull/2995 - feat: add
-w/--watchPaths
for subcommandgf run
by @windvalley in https://github.com/gogf/gf/pull/3009 - improve comment of router feature for ghttp.Server by @gqcn in https://github.com/gogf/gf/pull/3014
- fix security issue for
golang.org/x
packages by @hailaz in https://github.com/gogf/gf/pull/3042 - improve version checks for ci script by @hailaz in https://github.com/gogf/gf/pull/3047
- fix:incorrect parameter passing causes captured errors to be lost by @lazyironf4ur in https://github.com/gogf/gf/pull/3048
- add option
merge
controlling generating controller files into one single file for commandgf gen ctrl
by @zhangshican in https://github.com/gogf/gf/pull/3045 - improve comments and variable names for
gcfg.AdapterFile
of packagegcfg
by @gqcn in https://github.com/gogf/gf/pull/3046 - resolve response is gzip in internalMiddlewareServerTracing by @ltp217 in https://github.com/gogf/gf/pull/3055
- improve comments for package gconv by @gqcn in https://github.com/gogf/gf/pull/3057
- add
SetNoUrlEncode/NoUrlEncode
functions forgclient.Client
by @gqcn in https://github.com/gogf/gf/pull/3041 - add go workspace for cmd/gf, to enable go install for cmd/gf by @hailaz in https://github.com/gogf/gf/pull/3040
- improve cache duration from second to millisecond for redis adapter of package gcache by @fainc in https://github.com/gogf/gf/pull/3052
- delete repeat code in ut for package ghttp by @ltp217 in https://github.com/gogf/gf/pull/3058
- fix issue #2963 by @gqcn in https://github.com/gogf/gf/pull/3062
- version v2.5.5 by @gqcn in https://github.com/gogf/gf/pull/3068
- split ci workflow into two workflows for short by @gqcn in https://github.com/gogf/gf/pull/3069
- README.MD updates for cli installation by @gqcn in https://github.com/gogf/gf/pull/3071
- add example for http rate llimit by @hailaz in https://github.com/gogf/gf/pull/3072
- add README and example cases for nacos registry by @joy999 in https://github.com/gogf/gf/pull/3075
- fix issue #3077 by @gqcn in https://github.com/gogf/gf/pull/3081
- Update README.MD by @hailaz in https://github.com/gogf/gf/pull/3082
- feat: upgrade version and improve consul action by @houseme in https://github.com/gogf/gf/pull/3078
- fix separator issue in windows os for command
gf gen
by @hailaz in https://github.com/gogf/gf/pull/3088 - ignore
cmd/gf/go.work.sum
from git version controll by @hailaz in https://github.com/gogf/gf/pull/3087 - fix issue #3086 by @gqcn in https://github.com/gogf/gf/pull/3089
- Add the Protocol attribute to the Redis configuration by @tianxing113 in https://github.com/gogf/gf/pull/3109
- fix issue #3100 by @joy999 in https://github.com/gogf/gf/pull/3106
- fix cmd
gen pbentity
for generating go orm files for database postgres by @qobbysam in https://github.com/gogf/gf/pull/3105 - fix: nacos mod by @qinyuguang in https://github.com/gogf/gf/pull/3103
- fix issue #3099 by @joy999 in https://github.com/gogf/gf/pull/3107
- fix: gRPC-Go HTTP/2 Rapid Reset vulnerability by @houseme in https://github.com/gogf/gf/pull/3095
- fix(goai): example value needs to be converted just like default value by @wond4 in https://github.com/gogf/gf/pull/3085
- improve impelements for logging file rotation in windows by @gqcn in https://github.com/gogf/gf/pull/3080
- improve TemplateGenCtrlController is comments and formats by @oldme-git in https://github.com/gogf/gf/pull/3065
- add Output configuration support for command
gf build
in cross-buildling binary scenario by @gqcn in https://github.com/gogf/gf/pull/3120 - add unit testing cases for command
gen ctrl
by @oldme-git in https://github.com/gogf/gf/pull/3090 - add function
CaseConvert
for package gstr by @hailaz in https://github.com/gogf/gf/pull/3098 - fix duplicated route dump for package ghttp by @gqcn in https://github.com/gogf/gf/pull/3116
- improve implements and fix issues for package
contrib/drivers/dm
by @zhonghuaxunGM in https://github.com/gogf/gf/pull/3128 - enhance #3063 by @oldme-git in https://github.com/gogf/gf/pull/3115
- rename function name
PKCS5UnPadding
toPKCS7UnPadding
by @hailaz in https://github.com/gogf/gf/pull/3124 - enhance #3129 by @oldme-git in https://github.com/gogf/gf/pull/3134
- feat: improve code for shutdown of otel by @houseme in https://github.com/gogf/gf/pull/3136
- improve struct converting in parameter name case sensitive scenario for package
gconv
by @gqcn in https://github.com/gogf/gf/pull/3122 - example: log rotate by @hailaz in https://github.com/gogf/gf/pull/3137
- fix "gf gen pb" api and ctrl not working well. by @joy999 in https://github.com/gogf/gf/pull/3076
- fix: "gf gen dao" utils.GetModPath Return empty string in windows by @li-caspar in https://github.com/gogf/gf/pull/3141
- add gen service unit testing by @oldme-git in https://github.com/gogf/gf/pull/3142
- fix: gdb unsupport aliyun hologres link by @hailaz in https://github.com/gogf/gf/pull/3150
- fix issue: Windows Platform did not handle process signal by @zhangyuyu in https://github.com/gogf/gf/pull/3154
- fix issue in cross-building failed in windows by @hailaz in https://github.com/gogf/gf/pull/3152
- improve gen service code by @oldme-git in https://github.com/gogf/gf/pull/3140
- Optimize the information display of gf -v by @hailaz in https://github.com/gogf/gf/pull/3145
- Fix the bug that ScanAndCount and AllAndCount report errors in sqlserver by @wlqe in https://github.com/gogf/gf/pull/3155
- version v2.5.7 by @gqcn in https://github.com/gogf/gf/pull/3162
- Upgrade nacos sdk to latest version by @joy999 in https://github.com/gogf/gf/pull/3166
- fix issue in Join stements with prefix specified for package gdb by @gqcn in https://github.com/gogf/gf/pull/3151
- script updates for version upgrading by @hailaz in https://github.com/gogf/gf/pull/3169
- fix issue #3147 by @gqcn in https://github.com/gogf/gf/pull/3161
- improve map converting feature using
MapOption
for packagegconv
by @gqcn in https://github.com/gogf/gf/pull/3170 - fix: #2967 by @hailaz in https://github.com/gogf/gf/pull/3175
- test: add date-format test for RFC3339 by @hailaz in https://github.com/gogf/gf/pull/3181
- improve initialization performance and logging content for cmd gf by @hailaz in https://github.com/gogf/gf/pull/3174
- fix issue: request body was closed while retrying in callRequest method by @zhangyuyu in https://github.com/gogf/gf/pull/3199
- fix: #3179 by @hailaz in https://github.com/gogf/gf/pull/3195
- doc: update readme img by @hailaz in https://github.com/gogf/gf/pull/3207
- fix: #3197 by @hailaz in https://github.com/gogf/gf/pull/3206
- fix issue #3204 by @gqcn in https://github.com/gogf/gf/pull/3212
- improve gen dao to support removeFieldPrefix by @zhangyuyu in https://github.com/gogf/gf/pull/3208
New Contributors
- @xyqweb made their first contribution in https://github.com/gogf/gf/pull/2768
- @Agzer0 made their first contribution in https://github.com/gogf/gf/pull/2787
- @WankkoRee made their first contribution in https://github.com/gogf/gf/pull/2823
- @joy999 made their first contribution in https://github.com/gogf/gf/pull/2828
- @wlynxg made their first contribution in https://github.com/gogf/gf/pull/2898
- @BugKillerPro made their first contribution in https://github.com/gogf/gf/pull/2884
- @will0306 made their first contribution in https://github.com/gogf/gf/pull/2937
- @bigger-boss made their first contribution in https://github.com/gogf/gf/pull/2933
- @monchickey made their first contribution in https://github.com/gogf/gf/pull/2964
- @dabubus made their first contribution in https://github.com/gogf/gf/pull/2990
- @kele1997 made their first contribution in https://github.com/gogf/gf/pull/3008
- @lazyironf4ur made their first contribution in https://github.com/gogf/gf/pull/3048
- @zhangshican made their first contribution in https://github.com/gogf/gf/pull/3045
- @ltp217 made their first contribution in https://github.com/gogf/gf/pull/3055
- @fainc made their first contribution in https://github.com/gogf/gf/pull/3052
- @tianxing113 made their first contribution in https://github.com/gogf/gf/pull/3109
- @qobbysam made their first contribution in https://github.com/gogf/gf/pull/3105
- @wond4 made their first contribution in https://github.com/gogf/gf/pull/3085
- @li-caspar made their first contribution in https://github.com/gogf/gf/pull/3141
- @zhangyuyu made their first contribution in https://github.com/gogf/gf/pull/3154
- @wlqe made their first contribution in https://github.com/gogf/gf/pull/3155
Full Changelog: https://github.com/gogf/gf/compare/v2.5.0...v2.6.0
1、 gf_darwin_amd64 35.12MB
2、 gf_darwin_arm64 34.41MB
3、 gf_freebsd_386 31.66MB
4、 gf_freebsd_amd64 35.31MB
5、 gf_freebsd_arm 31.6MB
6、 gf_linux_386 31.89MB
7、 gf_linux_amd64 35.37MB
8、 gf_linux_arm 31.68MB
9、 gf_linux_arm64 33.82MB
10、 gf_linux_ppc64le 34.35MB
11、 gf_netbsd_amd64 35.24MB
12、 gf_openbsd_amd64 35.32MB
13、 gf_windows_amd64.exe 36MB