{"id":374908,"date":"2023-07-27T16:52:29","date_gmt":"2023-07-27T15:52:29","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=go&#038;p=374908"},"modified":"2023-07-27T16:52:33","modified_gmt":"2023-07-27T15:52:33","slug":"goland-2023-2","status":"publish","type":"go","link":"https:\/\/blog.jetbrains.com\/zh-hans\/go\/2023\/07\/27\/goland-2023-2","title":{"rendered":"GoLand 2023.2 Is Available!"},"content":{"rendered":"\n<p>GoLand 2023.2 offers improved integration with Go modules, refactorings for migrating function parameters to method receivers and vice versa, and support for <code>errors.Is<\/code> and <code>errors.As<\/code>.<\/p>\n\n\n\n<p>In this version, you\u2019ll find the new AI Assistant plugin (limited access), GitLab integration, and the Kafka plugin.<\/p>\n\n\n\n<p>There are also improvements to Docker integration and the Kubernetes plugin, as well as support for the LSP API for plugin developers.<\/p>\n\n\n\n<p>Below you\u2019ll find an overview of the new features. To learn more about the new additions and improvements in GoLand 2023.2, head over to our <a href=\"https:\/\/www.jetbrains.com\/go\/whatsnew\/\" target=\"_blank\" rel=\"noopener\">What\u2019s New<\/a> page, where you\u2019ll find a full overview of the release along with helpful GIFs and screenshots.<\/p>\n\n\n\n<p align=\"center\">\n    <a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/go\/download\/\" target=\"_blank\" rel=\"noopener\">      \n        Download GoLand 2023.2\n    <\/a>\n<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Go modules<\/h2>\n\n\n\n<ul>\n<li>We\u2019ve implemented the ability to download Go modules automatically on project open and after each change to the <code>go.mod<\/code> file.<\/li>\n\n\n\n<li>We\u2019ve added several intention actions and inspections to help you update dependencies in <code>go.mod<\/code> files faster.<\/li>\n\n\n\n<li>You can now disable vendoring in a project by project basis.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Refactorings<\/h2>\n\n\n\n<p>GoLand offers two new refactorings: <em>Migrate function parameter to method receiver<\/em> and <em>Migrate method receiver to function parameter.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Support for <code>errors.Is<\/code> and <code>errors.As<\/code><\/h2>\n\n\n\n<p>We\u2019ve implemented two inspections that will highlight the cases where <a href=\"https:\/\/go.dev\/blog\/go1.13-errors\" target=\"_blank\" rel=\"noreferrer noopener\"><code>errors.Is<\/code><\/a> or<a href=\"https:\/\/go.dev\/blog\/go1.13-errors\" target=\"_blank\" rel=\"noreferrer noopener\"> <code>errors.As<\/code><\/a> should be used. There are also quick-fixes that will help you refactor the existing code to <code>errors.Is<\/code> or <code>errors.As<\/code> usages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Support for <code>min<\/code>, <code>max<\/code>, and <code>clear<\/code><\/h2>\n\n\n\n<p>GoLand 2023.2 provides basic support for <code>min<\/code>, <code>max<\/code>, and <code>clear <\/code>\u2013 new functions introduced in Go 1.21.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Improvements for <code>make<\/code><\/h2>\n\n\n\n<ul>\n<li>We\u2019ve added type-aware code completion for <code>make<\/code> function invocations.<\/li>\n\n\n\n<li>GoLand can now detect errors and redundant arguments in <code>make<\/code> functions.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">AI Assistant Limited access<\/h2>\n\n\n\n<p>In this release, we\u2019ve introduced a major addition to GoLand \u2013 AI Assistant. With the current starting set of AI-powered features, AI Assistant offers an integrated AI chat and can automatically write documentation comments for you, suggest names, generate commit messages, and more. For more information on AI Assistant and instructions on how to access it, refer to this <a href=\"https:\/\/www.jetbrains.com\/help\/idea\/2023.2\/ai-assistant.html\" target=\"_blank\" rel=\"noopener\">page<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker<\/h2>\n\n\n\n<ul>\n<li>It\u2019s now easy to access and preview the contents of a Docker image layer in the <em>Services<\/em> tool window.<\/li>\n\n\n\n<li>It\u2019s now possible to set a Docker run configuration to run before another configuration by designating it as a <em>Before Launch<\/em> task.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Kubernetes plugin<\/h2>\n\n\n\n<ul>\n<li>We\u2019ve introduced a new feature that allows you to set up multiple kubeconfig files within a single project.<\/li>\n\n\n\n<li>You can now view logs for deployments in Kubernetes clusters in the <em>Services<\/em> tool window.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Performance<\/h2>\n\n\n\n<p>There\u2019s a new command line tool for quickly building and uploading <a href=\"https:\/\/www.jetbrains.com\/help\/idea\/shared-indexes.html\" target=\"_blank\" rel=\"noopener\">shared indexes<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Option to commit specific lines of code<\/h2>\n\n\n\n<p>You can now selectively commit specific parts of code chunks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GitLab integration<\/h2>\n\n\n\n<p>GoLand 2023.2 introduces integration with GitLab to streamline your development workflow. You can now work with the <em>Merge Requests<\/em> functionality right from the IDE.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Kafka plugin<\/h2>\n\n\n\n<p>The new <a href=\"https:\/\/plugins.jetbrains.com\/plugin\/21704-kafka\" target=\"_blank\" rel=\"noopener\">Kafka plugin<\/a> lets you monitor your Kafka event streaming processes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">User experience<\/h2>\n\n\n\n<ul>\n<li>If you\u2019re accustomed to the VS Code keymap, you can now choose it in the <em>Customize<\/em> section on the <em>Welcome<\/em> screen.<\/li>\n\n\n\n<li>GoLand 2023.2 brings the long-awaited ability to arrange your files in the <em>Project<\/em> view based on their modification time.<\/li>\n\n\n\n<li>To make managing multiple run configurations easier, we\u2019ve implemented the option to pin preferred configurations in the <em>Run<\/em> widget.<\/li>\n\n\n\n<li>We\u2019ve expanded the customization options for the new UI\u2019s main toolbar. You can now use a dropdown menu to quickly choose actions that you want to add to the toolbar.<\/li>\n\n\n\n<li>On Windows\/Linux, once you click on the menu icon, the elements now appear horizontally over the toolbar. Also, there\u2019s now an option to turn this menu into a separate toolbar.<\/li>\n\n\n\n<li>In the <em>Project<\/em> view, there\u2019s a new <em>Open Directories with Single Click<\/em> option that makes expanding and collapsing the project folders quicker and more responsive.<\/li>\n\n\n\n<li><em>Search Everywhere<\/em> now includes text search capabilities similar to <em>Find in Files<\/em>.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">User interface<\/h2>\n\n\n\n<ul>\n<li>GoLand 2023.2 introduces colored headers to simplify navigation between multiple open projects. You can now assign a unique color and icon to each of your projects, making them easier to distinguish in your workspace.<\/li>\n\n\n\n<li>We\u2019ve refined the user experience with the <em>Light<\/em> theme by introducing the <em>Light with Light Header<\/em> alternative.<\/li>\n\n\n\n<li>For the convenience of Linux users, the native operating system header has been removed in the new UI.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">HTTP Client<\/h2>\n\n\n\n<ul>\n<li>HTTP Client is now capable of understanding Swagger and OpenAPI specifications and providing corresponding code completion options for JSON requests.<\/li>\n\n\n\n<li>You can now share common JavaScript code for HTTP Client request handlers via imported modules.<\/li>\n\n\n\n<li>You can now send gRPC requests over Transport Layer Security (TLS) in HTTP Client.<\/li>\n<\/ul>\n\n\n\n<p>That\u2019s it! Please tell us what you think about the new features! Leave your comments here, report any issues you encounter to <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/GO\" target=\"_blank\" rel=\"noopener\">our issue tracker<\/a>, ping us on <a href=\"https:\/\/twitter.com\/golandide\" target=\"_blank\" rel=\"noopener\">Twitter<\/a>, or drop us a message in the <a href=\"https:\/\/invite.slack.golangbridge.org\/\" target=\"_blank\" rel=\"noopener\">Gophers Slack<\/a> #goland channel.<\/p>\n","protected":false},"author":1254,"featured_media":376601,"comment_status":"closed","ping_status":"closed","template":"","categories":[907],"tags":[8112],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/374908"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/go"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1254"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=374908"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/374908\/revisions"}],"predecessor-version":[{"id":376649,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/374908\/revisions\/376649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/376601"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=374908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=374908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=374908"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=374908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}