The preferred way in Go 1.13 and later is to use errors.As. The second inspection highlights type assertions and type switches on errors, such as err.(*MyErr) or switch err.(type), as they may also fail on wrapped errors. GoLand now has a quick-fix that suggests converting direct error comparisons to usages of errors.Is. The preferred way of checking for a specific error is to use the errors.Is function from the standard library. In Go 1.13 and later, errors can be wrapped using the fmt.Errorf function with the %w verb, and direct comparison of errors using the equality check may fail on wrapped errors. The first inspection highlights the direct comparisons of errors. There are also quick-fixes that will help you refactor the existing code to errors.Is or errors.As usages. We’ve implemented two inspections that will highlight the cases where errors.Is or errors.As should be used. Let’s take a look! Support for errors.Is and errors.As This RC build includes some new features as well. Don’t miss the improvements we’ve implemented for the HTTP Client and Swagger and OpenAPI support.LSP API support is available for plugin developers.The much-anticipated GitLab integration is available.For the user interface, we have colored project headers in the new UI.Single-click navigation between project directories.Pinned run configurations in the Run widget.File sorting by modification time in the Project view.We also have improvements for Docker integration and the Kubernetes plugin.You can now commit specific lines of code. Make sure to try our brand-new AI Assistant!.In performance updates, there’s a new tool for easily generating shared indexes.A warning for redundant conditions in for loops has been added.The Wrap error handling in a closure intention now has a preview.The error message for missing arguments in a type’s instantiation has been improved.The receiver type is shown in completion for method expressions.We’ve implemented completion and checks for make function arguments.There is also the Migrate method receiver to function parameter refactoring, which does the opposite and turns methods of a type to separate functions. We have a new refactoring that can be used when you need to convert separate functions to methods of a type. The Migrate function parameter to method receiver refactoring. In addition, you can now disable vendoring on a per-project basis, for example, when you have a monorepo containing the vendor folder used by another language. There is also a new quick-fix to update dependencies in go.mod to their recent versions. You can now download all dependencies automatically on project open and after each change of the go.mod file. Our recent EAP blog posts have more details about these updates, but here are some of the highlights: The Release Candidate provides all of the new features and improvements already announced during our current EAP cycle and expected in the major 2023.2 release. Please note that to use GoLand 2023.2 RC, you need to have an active subscription or start a 30-day trial. You can also download the build from inside GoLand by selecting Check IDE updates for: Early Access Program in Settings | Appearance & Behavior | System Settings | Updates. You can get this build via the Toolbox App, download it from our website, or use a snap package (for Ubuntu). or recruitment posts, we have a sticky for that, still, it's for redditors only, not professional recruiters.GoLand 2023.2 Release Candidate is out now! "It's perfectly fine to be a redditor with a website, it's not okay to be a website with a reddit account." - Confucius Exceptions can be made for software that will be exceptionally useful for typescript development and pipelines, but this is at the moderation teams discretion. Also no general spam of other products or software, even if it's free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |