{"id":559188,"date":"2025-04-16T13:29:54","date_gmt":"2025-04-16T12:29:54","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=go&#038;p=559188"},"modified":"2025-04-17T11:54:30","modified_gmt":"2025-04-17T10:54:30","slug":"goland-2025-1-is-out","status":"publish","type":"go","link":"https:\/\/blog.jetbrains.com\/zh-hans\/go\/2025\/04\/16\/goland-2025-1-is-out","title":{"rendered":"GoLand 2025.1 Is Out!"},"content":{"rendered":"\n<p>GoLand 2025.1 comes with several exciting updates to help you write better Go code and work more efficiently. This release introduces support for <code>golangci-lint<\/code>, improvements to the <em>Rename<\/em> refactoring and static analysis, smarter handling of the <code>toolchain<\/code> directive, and full support for Go 1.24. We\u2019re also bringing major updates for JetBrains AI. Let\u2019s take a closer look at what\u2019s new!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"2560\" height=\"1440\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/04\/Featured_Blog_1280x720-2x-2-1.png\" alt=\"\" class=\"wp-image-561660\"\/><\/figure>\n\n\n    <div class=\"buttons\">\n        <div class=\"buttons__row\">\n                                                <a href=\"https:\/\/www.jetbrains.com\/go\/download\/?_gl=1*1bknsan*_gcl_aw*R0NMLjE3NDQ4MDU5NzYuQ2owS0NRandxdjJfQmhDMEFSSXNBRmI1QWNfRWxScEVicXBOWXAycFRlV3VEem90azlydlpsZEVldU5pY28tWnowRWhhOTBkS253NVFUTWFBaGhTRUFMd193Y0I.*_gcl_au*MTA5NTUxMzk5OS4xNzQ0NjQ2MjE5*FPAU*MTA5NTUxMzk5OS4xNzQ0NjQ2MjE5*_ga*MTk0OTI2MzQ5MC4xNjU3MjgzNjM5*_ga_9J976DJZ68*MTc0NDgwMTk3My4xNTQ5LjEuMTc0NDgwNzkzOS45LjAuMA..#section=mac\" class=\"btn\" target=\"\" rel=\"noopener\">Download GoLand 2025.1<\/a>\n                                                    <\/div>\n    <\/div>\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading has-text-align-left\"><strong>AI support<\/strong><\/h2>\n\n\n\n<p>JetBrains AI has received a major upgrade, bringing both AI Assistant and Junie under a single subscription. With this release, all JetBrains AI features are accessible for free in our IDEs, with unlimited use for some, such as unlimited code completion and local model support, and limited credit-based access to others. We&#8217;re also introducing a new subscription system that makes it easy to scale up as needed with the AI Pro and AI Ultimate tiers.&nbsp;<\/p>\n\n\n\n<p>This release introduces major enhancements to boost productivity and reduce repetitive work. Updates include smarter code completion, support for new cloud models like Claude 3.7 Sonnet and Gemini 2.0 Flash, advanced RAG-based context awareness, and a new edit mode for multi-file edits directly from the chat. Learn more about JetBrains AI plans and capabilities <a href=\"https:\/\/www.jetbrains.com\/ai\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>New Go features<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Support for <code>golangci-lint<\/code><\/strong><\/h3>\n\n\n\n<p>GoLand now integrates the Go Linter plugin, bringing native support for <code>golangci-lint<\/code>. You can configure it in <em>Settings | Go | Linters<\/em>, choosing exactly which checks to enable or disable. Inspections run in real time as you code, helping you catch issues early without leaving the IDE.<\/p>\n\n\n\n<p>You can also reuse your existing CI configurations to keep linter behavior consistent across environments. Read the <a href=\"https:\/\/www.jetbrains.com\/help\/go\/2025.1\/configuring-golangci-lint-in-the-go-linter-plugin.html\" target=\"_blank\" rel=\"noopener\">full guide<\/a> to learn more.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1962\" height=\"996\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/04\/golang_ci_lint_settings.png\" alt=\"\" class=\"wp-image-559189\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Improved <em>Rename<\/em> refactoring for struct fields<\/strong><\/h3>\n\n\n\n<p>When renaming struct fields, GoLand now automatically updates the corresponding JSON tags. This prevents mismatches between field names and serialized output and ensures refactorings are applied consistently across your codebase.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1344\" height=\"800\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/04\/goland_rename_json_tag-1.gif\" alt=\"\" class=\"wp-image-559248\"\/><\/figure>\n\n\n\n<p><strong>Improved notifications and support for the <code>toolchain<\/code> directive<\/strong><\/p>\n\n\n\n<p>GoLand now notifies you when a project&#8217;s SDK is changed due to the <code>toolchain<\/code> directive in <code>go.mod<\/code>. Additionally, we&#8217;ve improved the codebase so that GoLand can handle this directive more effectively.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1430\" height=\"762\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/04\/goland_processing_toolchain_directive.png\" alt=\"\" class=\"wp-image-559226\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Full support for Go 1.24<\/strong><\/h3>\n\n\n\n<p>GoLand 2025.1 aligns with the latest version of Go and fully supports its new language features:<\/p>\n\n\n\n<ul>\n<li><strong>Generic type aliases<\/strong>: GoLand now recognizes and offers support, including navigation, highlighting, and code completion, for type aliases with type parameters.<\/li>\n\n\n\n<li><strong>The <code>tool<\/code> directive in <code>go.mod<\/code><\/strong>: The IDE properly reports errors if the directive is used with unsupported Go versions.<\/li>\n\n\n\n<li><strong>Updated Delve debugger<\/strong>: With Delve 1.24.0 bundled out of the box, GoLand now includes all recent fixes and improvements to ensure smoother debugging.<\/li>\n\n\n\n<li><strong>Improved <code>go get<\/code> behavior<\/strong>: The deprecated <code>-d<\/code> flag is no longer added to commands run from the IDE, preventing unnecessary warnings in the <em>Run<\/em> tool window.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Inherited features from IntelliJ IDEA, WebStorm, and DataGrip<\/strong><\/h3>\n\n\n\n<p>GoLand also brings in many of the latest features from the IntelliJ Platform ecosystem. Explore what\u2019s new in:<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/www.jetbrains.com\/idea\/whatsnew\/\" target=\"_blank\" rel=\"noopener\">IntelliJ IDEA<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.jetbrains.com\/webstorm\/whatsnew\/\" target=\"_blank\" rel=\"noopener\">WebStorm<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.jetbrains.com\/datagrip\/whatsnew\/\" target=\"_blank\" rel=\"noopener\">DataGrip<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>We\u2019d love to hear your feedback on these new features so we can make them even better. Share your thoughts on <a href=\"https:\/\/x.com\/golandide\" target=\"_blank\">X<\/a>, leave a comment below, <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/GO\" target=\"_blank\" rel=\"noopener\">create an issue<\/a> in our tracker, or chat with us in the <a href=\"https:\/\/invite.slack.golangbridge.org\/\" target=\"_blank\" rel=\"noopener\">#goland-gophers<\/a> Slack channel.<\/p>\n\n\n\n<p>Happy developing!<\/p>\n\n\n\n<p><em>The GoLand Team<\/em><\/p>\n","protected":false},"author":1386,"featured_media":559259,"comment_status":"closed","ping_status":"closed","template":"","categories":[89,907],"tags":[8761],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/559188"}],"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\/1386"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=559188"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/559188\/revisions"}],"predecessor-version":[{"id":562075,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/559188\/revisions\/562075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/559259"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=559188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=559188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=559188"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=559188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}