On Thu, Oct 19, 2023 at 8:31 PM Pratik Tamgole wrote:
>
> When I use packages, any packages in general, how does the import("fmt") line
> correct itself to include the used packages in the program? What tool is
> implemented here, I want to put the same in my editor.
Hi,
https://pkg.go.dev/golang.org/x/tools/cmd/goimports
goimports -w ./
On Thu, Oct 19, 2023, 8:31 PM Pratik Tamgole
wrote:
> When I use packages, any packages in general, how does the import("fmt")
> line correct itself to include the used packages in the program? What tool
> is implemented
When I use packages, any packages in general, how does the import("fmt")
line correct itself to include the used packages in the program? What tool
is implemented here, I want to put the same in my editor.
--
You received this message because you are subscribed to the Google Groups