mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[PR #77] [MERGED] Add optional and pluggable Lua formatting for DumpLuaBlock #77
Labels
No labels
bug
enhancement
good first issue
pull-request
question
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gonginx#77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tufanbarisyildirim/gonginx/pull/77
Author: @tufanbarisyildirim
Created: 2/20/2026
Status: ✅ Merged
Merged: 2/20/2026
Merged by: @tufanbarisyildirim
Base:
master← Head:fix/issue-73-optional-lua-formatting📝 Commits (1)
68f22f5Add optional and pluggable Lua formatting in dumper📊 Changes
4 files changed (+84 additions, -9 deletions)
View changed files
📝
GUIDE.md(+4 -0)📝
dumper/dumper.go(+26 -9)📝
dumper/lua.go(+11 -0)📝
dumper/lua_test.go(+43 -0)📄 Description
Summary
Style.WithLuaFormatting(enabled bool)to allow disabling Lua formatting inDumpLuaBlockStyle.WithLuaFormatter(formatter LuaFormatterFunc)for custom/pluggable formatting behaviorGUIDE.mdTesting
go test ./dumper -run 'TestDumpLuaBlock_(DisableFormatting|UsesCustomFormatter|PreservesLiteralsAndHashComments|InvalidLuaFallsBackToOriginal)'go test ./dumpermake testCloses #73
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.