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] reorganize and document #200

Merged
merged 5 commits into from
May 21, 2024
Merged

[Go] reorganize and document #200

merged 5 commits into from
May 21, 2024

Conversation

jba
Copy link
Contributor

@jba jba commented May 20, 2024

Make the API nicer.

  • Unexport symbols that don't need to be visible.

  • Write documentation for some undocumented symbols.

jba added 2 commits May 20, 2024 07:56
Make the API nicer.

- Unexport symbols that don't need to be visible.

- Write documentation some undocumented symbols.
@jba jba requested review from randall77 and ianlancetaylor May 20, 2024 13:51
@jba
Copy link
Contributor Author

jba commented May 20, 2024

Apologies for the big PR.

Everything is just renaming and movement. No change in functionality.

It might help to review each commit separately. The first just renames and unexports. The second creates new packages.

go/internal/cmd/jsonschemagen/jsonschemagen.go Outdated Show resolved Hide resolved
go/internal/cmd/jsonschemagen/jsonschemagen.go Outdated Show resolved Hide resolved
go/common/common.go Outdated Show resolved Hide resolved
go/common/common.go Outdated Show resolved Hide resolved
@@ -24,6 +24,7 @@ import (
"strings"
"testing"

gtrace "github.com/firebase/genkit/go/trace"
Copy link
Contributor

Choose a reason for hiding this comment

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

The impulse to use an import alias for each import suggests that the package name should actually be gtrace.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

go/genkit/tracing.go Outdated Show resolved Hide resolved
@jba jba merged commit f390858 into main May 21, 2024
5 checks passed
@jba jba deleted the jba-godoc branch May 21, 2024 21:34
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