zeromicro/go-zero
 Watch   
 Star   
 Fork   
17 days ago
go-zero

goctl/v1.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.5...tools/goctl/v1.9.0

2025-08-17 17:50:38
go-zero

goctl/v1.9.0-alpha

What's Changed

New Contributors

Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.5...tools/goctl/v1.9.0-alpha

2025-08-15 20:08:02
go-zero

v1.9.0

What's Changed

  • feat: support masking sensitive data in logx by @kevwan in #5003
  • feat: add field tag (-) skip logic in unwrapFields in sqlx by @charmfocus in #5010
  • feat: upgrade to mongo-driver v2, and move v1 to zero-contrib by @me-cs in #4687
  • feat: add generic TypedSet with 2x performance boost and compile-time by @codeErrorSleep in #4888
  • feat: add custom middleware support with onion model in gateway by @DengY11 in #5035
  • feat: redis support consumer groups by @jk2K in #4912
  • feat: ignore unknown fields in gateway request parsing by @guonaihong in #5058
  • fix: issue with etcd key disappearing and unable to auto-re-register by @guonaihong in #4960
  • fix: SSE timeout will affected by http.Server's WriteTimeout by @csbzy in #5024
  • fix: unmarshal problem on env vars for type env string by @kevwan in #5037
  • fix: large memory usage on detail logging post requests by @kevwan in #5039
  • fix: Resolve HTML escaping issue during JSON serialization in httpx by @Disdjj in #5032
  • fix: resolve concurrent get may lead to empty result in ImmutableResource by @sunhao1296 in #5065
  • optimize: logging with fields by @kevwan in #5066

New Contributors

Detailed Release Notes: https://go-zero.dev/en/reference/releases/v1.9.0 Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.8.5...v1.9.0

2025-07-13 11:18:51
go-zero

goctl/v1.8.5

What's Changed

  • Bug Fix: Fix for issue #4943 — fix goctl api swagger error (@kesonan)
  • Bug Fix: Fixed goctl api swagger panic with nil pointer when there is a wrong field tag in the API file (#4936)
  • Bug Fix: Resolved issue where timeout: 0s was not working in API files (#4932, @kevwan)
  • Bug Fix: Corrected PostgreSQL numeric type mapping in goctl model generation (#4992, @AnlynnLee)
  • Enhancement: Improved POST JSON parameter determination logic in goctl API Swagger and added unit tests (#4997, @Twilikiss)

New Contributors

  • @wanwusangzhi made their first contribution (#4944)
  • @geekeryy made their first contribution (#4979)
  • @Twilikiss made their first contribution (#4997)

Full Changelog: tools/goctl/v1.8.4...tools/goctl/v1.8.5

2025-07-13 00:00:52
go-zero

v1.8.5

Features

  • SQL Read/Write Splitting: Introduced SQL read/write splitting for improved database performance and scalability (#4976, #4990, #5000).
  • Serverless Support in REST: Added support for serverless use in REST services (#5001).

Bug Fixes & Improvements

  • Fixed HTTP SSE method timeout not working when timeout is set by server (#4932)
  • Fixed timeout 0s not working in API files (#4932)
  • Fixed panic caused by time.Duration type with numerical values (#4944)
  • Fixed duration type comparison in environment variable processing (#4979)

New Contributors

  • @wanwusangzhi made their first contribution (#4944)
  • @geekeryy made their first contribution (#4979)

Full Changelog: v1.8.4...v1.8.5

2025-06-09 18:08:20
go-zero

goctl/v1.8.4

Highlights

  • goctl 1.8.4 Features & Beta: New features and improvements in goctl, including mongo model generation with cache prefix and improved swagger consume types (#4849, #4869, #4903, #4907).
  • Bug Fixes & Compatibility: Multiple bug fixes for backward compatibility, timeout settings, spelling, type handling, and more (#4852, #4895, #4914, #4916, #4917, #4918, #4920, #4785, #4931).

What's Changed

New Contributors

  • @yguilai made their first contribution in #4874
  • @Caplost made their first contribution in #4917
  • @smiley-yoyo made their first contribution in #4907

Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.3...tools/goctl/v1.8.4

2025-06-08 23:14:38
go-zero

v1.8.4

Highlights

  • Continuous profiling support (#4867).
  • Embedded File Server Enhancements: Added support to serve files using embed.FS, simplifying static file serving (#4847, #4851).
  • Performance Optimizations: Improved performance for hashing and slicing operations (#4891, #4877).

What's Changed

  • New Features:
    • File server now supports embed.FS (#4847).
    • Continuous profiling support (#4867).
  • Optimizations:
    • Improved slicing and comparison using Go standard library functions (#4841, #4840, #4877, #4879).
    • Time formatting standardized with the Go standard library (#4875).
    • Hashing performance improvements (#4891).

New Contributors

Thank you to all our contributors!

Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.8.3...v1.8.4

2025-05-25 15:07:58
go-zero

tools/goctl/v1.8.4-beta

Changes

  • Fixed goctl bugs.

👥 New Contributors

We welcome our new contributor:

📋 Full Changelog

Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.3...tools/goctl/v1.8.4-beta


🙏 Acknowledgments

Special thanks to all contributors who made this release possible:

  • @kevwan
  • @dushaoshuai
  • @me-cs
  • @kesonan
  • @yguilai
  • @codeErrorSleep
  • @dependabot

We encourage testing this beta release and welcome feedback from the community!

2025-05-15 21:59:48
go-zero

goctl/v1.8.4-alpha

What's Changed

goctl Features in 1.8.4-alpha

  • Swagger Enhancements:
    • Bug fix: Removed example generation for query, path, and header request bodies, which aren't supported in API spec 2.0.
    • Feature: Added support for response and JSON request body definitions. Enabled via the useDefinitions keyword in the API file.
  • API Code Generation Updates:
    • Added --type-group flag for grouping types by file.
    • Introduced group keyword in @server block for type separation.
  • API Parser Improvements:
    • Added support for identifier values in info key-value pairs.

Check the PR description for detailed examples and usage.


Full Changelog: v1.8.3...v1.8.4-alpha

2025-05-04 16:18:02
go-zero

goctl/v1.8.3

✨ Swagger Features

  • Built-in Swagger Support: Generate Swagger documents in goctl. Key features include:
    • Custom Authentication: Configure custom Swagger authentication.
    • Complex Structures: Generate Swagger definitions for complex structures.
    • Custom Example Values: Add custom example values in Swagger.
    • Custom Response Body Format: Define response body formats.
    • Custom Business Error Codes: Enumerate error codes for business logic.
    • Custom Generated File: Specify the generated Swagger file name.
    • For more details, refer to:

🔧 Fixes

  • fix: Form fields of request optional by @soasurs in #4755
  • fix: The parameter "required" in the Swagger document generated for repair is incorrect by @kesonan in #4791
  • fix: Array schema generation incorrect by @kesonan in #4801
  • fix: pg gen model missing cache prefix by @SpectatorNan in #4788
  • fix: goctl api tsgen by @wwwfeng in #4726

🧹 Chores

  • chore(deps): Bump github.com/emicklei/proto from 1.14.0 to 1.14.1 in /tools/goctl by @dependabot in #4817
  • chore(deps): Bump github.com/redis/go-redis/v9 from 9.7.3 to 9.8.0 by @dependabot in #4821

🐛 Bug Fixes

  • Fix: The issue of generating Swagger @doc "xxx" that fails and use the right ... by @Rankgice in #4816

🌟 New Contributors

  • @hthuz made their first contribution in #4766
  • @dushaoshuai made their first contribution in #4809
  • @Rankgice made their first contribution in #4816
  • @Disdjj made their first contribution in #4790
  • @hoshi200 made their first contribution in #4741
  • @wwwfeng made their first contribution in #4726

Full Changelog: Compare v1.8.2...v1.8.3