GoLand 2020.3 - dump goroutines, run tabular tests, extended Testify support

Hello, Habr!





GoLand 2020.3 was released a few weeks ago , the last release of the outgoing year. Today we'll tell you why you should upgrade to a new version or try our IDE for Go developers.





What's new:





  • Dumping and filtering goroutines in the debugger





  • Point run table tests





  • Extended support for Testify framework





  • time





  • UI





  • -













, IDE. What's New in GoLand 2020.3 .






Dump Goroutines . , .





, . , Hidden.





, Go Remote, , , .





: Stop remote Delve processes, Leave it running , GoLand .





Run.





:





  • , , , , ( for



    ).





  • . , , .





  • , fmt.Sprintf()



    %s



    %d



    .





Testify

, IDE suite.Run



suite.T().Run



. , Run.





Testify



.





testify/assert



, testify/require



, testify/mock



testify/suite



, testing.T



, GoLand .





Incorrect usage of Println/Printf like functions github.com/pkg/errors



, github.com/sirupsen/logrus



go.uber.org/zap



.





. , intention- Add format string argument.





context.CancelFunc is not called . , context.WithCancel , .





.





time

time, . (Ctrl+Space) YYYY



, MM



, DD



, ISO-8601.





, Ctrl+P , IDE . , time.





IDE , go.mod



.





. Alt+Enter Exclude for import and completion Preferences/Settings | Go | Imports.





GoLand 2020.3 . -, IDE . -, Navigate to shadowing declaration .





Go, .





, Enable generics (experimental support for type parameters) Preferences/Settings | Go.





, -.





func



, GoLand bench



test



Live Templates .





for



, IDE b.N



.





Alt+Enter, . 10 .





Code With Me

GoLand 2020.3 Code With Me (Early Access Program) โ€” . IDE.





Code With Me .





(Welcome), :









  • IDE













IDE c

Sync with OS Preferences/Settings | Appearance & Behavior | Appearance | Theme, IDE .





, . , .





Project

UX Project. , IDE . Project , .





. Project Shift+Enter, IDE .





VCS

VCS , VCS, .





Git staging

(Git staging). Commit, .





, Enable staging area Preferences/Settings| Version Control | Git. , .





( ). +, Staged. Show Diff.





:





  • IDE .





  • GoLand , .





  • Merge into Current Rebase Current onto Selected Pull into Current Using Merge Pull into Current Using Rebase.





Enable for Current Project Enable for All Projects. Preferences/Settings | Plugins , , .





macOS

macOS System Shortcuts (Preferences/Settings | Keymap) macOS . F- .





-

- . .





, - .





React-

WebStorm, GoLand -. , React . , Alt+Enter .





pnpm

GoLand 2020.3 pnpm npm yarn. pnpm pnpm-lock , GoLand . pnpm : Preferences/Settings | Languages and Frameworks | Node.js and NPM.





webpack

GoLand 2020.3 . Preferences/Settings | Languages & Frameworks | JavaScript | Webpack.





WebStorm GoLand. , .





Couchbase

DataGrip, GoLand . โ€“ Couchbase! , IDE Couchbase Query, Couchbase Analytics.





DataGrip DDL . MySQL, PostgreSQL, Greenplum, Redshift SQL Server.





:





  • , .





  • XML JSON-, .





  • , .





  • .





, :





  • One-Row .





  • SQL-Insert-Multirow INSERT



    .





, CSV- : never quote values.





WebStorm, GoLand DataGrip. .





! . , - Twitter.





, IntelliJ IDEA Ultimate, GoLand , .





!








All Articles