Re: [go-nuts] What tool is used in Go Playground's import handling?

2023-10-20 Thread Ian Lance Taylor
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.

Re: [go-nuts] What tool is used in Go Playground's import handling?

2023-10-19 Thread 'Christian Stewart' via golang-nuts
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

[go-nuts] What tool is used in Go Playground's import handling?

2023-10-19 Thread Pratik Tamgole
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