Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update field_options.go #1256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update field_options.go #1256

wants to merge 1 commit into from

Conversation

wulorn
Copy link
Contributor

@wulorn wulorn commented Feb 8, 2025

Add type aliases for Method and Param for external use

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

User Case Description

Add type aliases for Method and Param for external use
@wulorn
Copy link
Contributor Author

wulorn commented Feb 8, 2025

hi @jinzhu @qqxhb
这个 PR 添加了 CustomMethodCustomParam 两个别名,分别对应 parser.Methodparser.Param 类型。主要目的是为了更简洁地暴露这些类型,方便外部包(如gentool)进行使用,提升代码可读性。

此次更改非常小,仅仅是为现有类型创建了别名,并没有引入任何新的功能,也不会影响现有代码的行为。这个改动有助于简化外部代码的使用方式,让代码更加直观和易于理解。

希望这个 PR 能尽快合并,感谢你的审查与考虑!

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