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

lang/go: Add Context.FieldType{PackageName,ImportPath} #67

Closed

Conversation

rvolosatovs
Copy link
Contributor

Export Context.FieldType{PackageName,ImportPath}, which can be quite useful in various scenarios.
Extracted from #51

@rvolosatovs
Copy link
Contributor Author

@rodaine I suppose you want testing added as well here before merge, same as #66 ?

Copy link
Contributor

@rodaine rodaine left a comment

Choose a reason for hiding this comment

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

I suppose you want testing added as well here before merge

Yes please!

@@ -60,6 +60,16 @@ type Context interface {

// OutputPath returns the output path relative to the plugin's output destination
OutputPath(entity pgs.Entity) pgs.FilePath

// FieldTypeImportPath returns name of the Field type's package as it would appear in
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// FieldTypeImportPath returns name of the Field type's package as it would appear in
// FieldTypePackageName returns name of the Field type's package as it would appear in

@pdecks
Copy link
Contributor

pdecks commented Dec 21, 2023

Closing this since testing was never added and because "import_path" and "import_prefix" have since been deprecated and removed from protoc-gen-go.

@pdecks pdecks closed this Dec 21, 2023
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