Skip to content

Clean up and simplify addons - #10

Open
Znarf64 wants to merge 1 commit into
saenai255:masterfrom
Znarf64:master
Open

Clean up and simplify addons#10
Znarf64 wants to merge 1 commit into
saenai255:masterfrom
Znarf64:master

Conversation

@Znarf64

@Znarf64 Znarf64 commented May 20, 2026

Copy link
Copy Markdown

Changes:

  • Remove unused imports
  • Use reflect.struct_tag_lookup instead of regex
  • Default to field name if no tag is available
  • Prefer switch over if/else
  • Use .Transient instead .Static since this is controlled by the user and we don't actually know if it's static

sorry that this PR is a little big, it should probably have been broken up into smaller ones, but I just fixed all the issues I ran into when using library.

Use reflect.struct_tag_lookup instead of regex
Default to field name if no tag is available
Prefer switch over if/else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant