fix(lang/go): when it's method, exported is determined by the Method name but …#110
Merged
Duslia merged 1 commit intocloudwego:mainfrom Oct 21, 2025
Merged
Conversation
Duslia
approved these changes
Oct 21, 2025
Duslia
reviewed
Oct 21, 2025
88f1a11 to
5f3690a
Compare
Duslia
approved these changes
Oct 21, 2025
simuleite
pushed a commit
to simuleite/abcoder
that referenced
this pull request
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…not its receiver
What type of PR is this?
Check the PR title.
(Optional) Translate the PR title into Chinese.
当是类的方法时,是否导出应该由方法的实际名字确定,而不是类的名字。
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
因为当这里是类的方法时,name 是
{struct name}.{method name},当然也可能是多层组合的{struct name}.{struct name}.{method name},所以要根据{method name}的首字母来判断。比如
struct a {}有一个方法func (*a) Do()实际上这个Do方法是导出的;当
struct A {}有一个方法func (*A) do()实际上这个方法是非导出的。(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: