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

go: reduce API surface #248

Merged
merged 3 commits into from
Oct 29, 2019
Merged

go: reduce API surface #248

merged 3 commits into from
Oct 29, 2019

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Oct 29, 2019

It does:

  • Hide the default classifier strategy from API that is not needed
  • Hide classifier interface and related getLanguagesBySpecificClassifier methods

All this changes do not affect useful API surface, that is common between Go, Java (and upcoming Python)

@bzz bzz requested a review from creachadair October 29, 2019 15:07
@bzz bzz requested a review from a team as a code owner October 29, 2019 15:07
@bzz bzz changed the title Go: reduce API surface go: reduce API surface Oct 29, 2019
@bzz bzz changed the title go: reduce API surface go: reduce API surface WIP Oct 29, 2019
@bzz bzz self-assigned this Oct 29, 2019
Copy link
Contributor

@creachadair creachadair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small things.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bzz bzz changed the title go: reduce API surface WIP go: reduce API surface Oct 29, 2019
@bzz
Copy link
Contributor Author

bzz commented Oct 29, 2019

It's not WIP any more, PR description updated, e984c70 added and it's ready for another round.

@bzz bzz mentioned this pull request Oct 29, 2019
Don't export defaultClassifier

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
README.md Outdated Show resolved Hide resolved
Even more reduces public API surface by
hiding un-used Classifier API for providing
a pre-trained classifier weights.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@bzz bzz merged commit 697929e into src-d:master Oct 29, 2019
@bzz bzz deleted the go-api-surface branch October 29, 2019 18:13
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.

3 participants