You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Introduction
I use
go:generate
in my source code to invokemockgen
to generate mocked interfaces.e.g.
//go:generate mockgen -destination=mocks/foo.pb.go github.com/xxx/xxx/pkg/xxx Foo
But it's too annoying that every time I have to write and check the package name (github.com/xxx/xxx/pkg/xxx).
And add the full package name in a source file is kind of duplicated information since golang could parse the file path and get the package name.
Feature request
So I want to add a feature that can use
.
to refer to the current path's package.e.g.
//go:generate mockgen -destination=mocks/foo.pb.go . Foo
Just a single
.
, no moregit.luolix.top/xxx/xxx/pkg/xxx
.The text was updated successfully, but these errors were encountered: