如何修复此错误?
pkg/path/to/file.go:22: File is not `goimports`-ed with -local github.com/some/repositiory (goimports)
s "github.com/some/repositiory/pkg/somepkg"如果我运行goimports -local pkg/path/to/file.go,这个程序就会卡住,什么也不会发生。
s是我用来指somepkg的名字,例如s.SomeFunc()。
发布于 2022-09-22 13:22:44
你得跑
goimports -w -local github.com/some/repositiory pkg/path/to/file.gohttps://stackoverflow.com/questions/73815109
复制相似问题