Closed
Description
Currently, gopls
only supports directories with a single main, no matter whether you open a single file or a directory. For single files, we load the entire directory, no matter what. Some users create directories with multiple mains, which they run using go run file.go
. Should gopls
support such directories? If so, how should it work?