Bump golang.org/x/tools from 0.9.3 to 0.10.0 in /hack/goimports by dependabot[bot] · Pull Request #301 · servicebinding/runtime
gopls/v0.10.0
This release contains initial support for standalone packages and package renaming. Please see below for more details.
We are also changing our release policy to better align with semver.
Support changes
This version of gopls contains changes to our release policy, deprecates support for some older Go versions, and deprecates support for several experimental features.
New release policy
As described in golang/go#55267, we are tightening our release policy to better follow semver, increase stability, and reduce release-related toil. Significant new features will only be introduced in *.*.0 patch versions, and subsequent patch releases will consist only of bugfixes. For example, this version (v0.10.0) introduces several new features, described below. Subsequent v0.10.* releases will contain only bugfixes.
Final support for Go 1.13-1.15
Consistent with the above release policy and our stated support window, the v0.10.* minor version will be the final set of releases to support being used with Go 1.13-1.15. See golang/go#52982 for details.
Gopls will pop up a warning if it resolves a version of the go command that is older than 1.16. Starting with gopls@v0.11.0, gopls will cease to function when used with a go command with a version older than 1.16.
Deprecated experimental features
The following experimental features are deprecated, and will be removed in gopls@v0.11.0:
- experimentalWorkspaceModule
golang/go#52897go.workfiles. See our documentation for information on how to usego.workfiles to work on multiple modules. - experimentalWatchedFileDelay
golang/go#55268workspace/didChangeWatchedFilesnotifications. - experimentalUseInvalidMetadata
golang/go#54180
New Features
Support for "standalone packages"
Gopls now recognizes certain files as "standalone main packages", meaning they should be interpreted as main packages consisting of a single file. To do this, gopls looks for packages named main containing a single build constraint that matches one of the tags configured by the new standaloneTags setting.
This enables cross references and other features when working in a file such as the example below that contains a //go:build ignore build constraint.
(preview) Support for package renaming
golang/go#41567golang/go#56184.
To rename a package, initiate a rename request on the package clause of a file in the package:

When this renaming is applied, gopls will adjust other package files accordingly, rename the package directory, and update import paths referencing the current package or any nested package in the renamed directory.

Method information in hover
Hovering over a type now shows a summary of its methods.
... (truncated)
