GoLand 2020.3 - vidage des goroutines, exécution de tests tabulaires, support étendu de Testify

Bonjour, Habr!





GoLand 2020.3 est sorti il ​​y a quelques semaines , la dernière version de l'année à venir . Aujourd'hui, nous vous expliquerons pourquoi vous devriez passer à une nouvelle version ou essayer notre IDE pour les développeurs Go.





Quoi de neuf:





  • Décharger et filtrer les goroutines dans le débogueur





  • Tests de table d'exécution de points





  • Testify





  • 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