GoLand 2020.1 - Prise en charge améliorée des modules Go, beaucoup de complétion automatique et bien plus encore

Bonjour, Habr!


Il y a un peu plus d'une semaine, nous avons publié une nouvelle version de notre IDE pour Go - GoLand 2020.1 .




En bref, dans ce cycle de publication, nous nous sommes concentrés sur l'extension de la prise en charge actuelle des modules Go. Par exemple, l' go.modachèvement du code, la refactorisation et la navigation fonctionnent désormais dans un fichier , et ce n'est pas tout!


. . , . Smart Code Completion Basic Code Completion.


, , Go 1.14 , .


, — IDE Features of GoLand 2020.1.



Go Modules


GOPROXY, GOPRIVATE, GOSUMDB, GONOPROXY GONOSUMB Go 1.13.


Go Modules. Browse Environment, Environment Variables.




go, module, require, replace, exclude, replace go.mod.




, replace, Move Rename .




, go.mod, Find Usages Project View.




Alt-Enter.




, , go.mod replace-.




,


GoLand 2020.1 if err != nil { ... } . if .




, type struct interface.




Fill Fields , . .




, .




, .




Smart Code Completion (⌃⇧Space Ctrl+Shift+Space)


.




, .




.




, GoLand 2020.1 .




Basic Code Completion (⌃Space or Ctrl+Space)


Basic Code Completion . .




, Basic Code Completion .





, , GoLand 2020.1 , .




, IDE .




, , , GoLand Editing Features You Didn’t Know About ( ).


Go 1.14



Go 1.14 , ! , , GoLand .



Go 1.14, vendor. GoLand 2020.1 1.13 . IDE vendor, .




. How to Find Goroutines During Debugging ( ).





. Run/Debug Configurations + Go Tool Program arguments, Macros .




, . Store Run/Debug Configurations.



.else if , .





Alt+Enter.




Create variable , .





- , . .




Invalid conversions of uintptr to unsafe.Pointer uintptr unsafe.Pointer .




Unmarshal is called with incorrect argument json.Unmarshal encoding/json, encoding/xml encoding/gob .




Locks mistakenly passed by value sync.Locker.




Live templates


consts, vars, types imports . GoLand . fori for-loop.





Extract Method . Rename . , , IDE . , .





Navigate to implementations (⌥⌘B MacOS Ctrl+Alt+B Windows/Linux) Navigate to Declaration Usages (⌘B MacOS Ctrl+B Windows/Linux) .


, Find Usages (Alt+F7 Windows/Linux ⌥F7 macOS) . Alt+Shift+Ctrl+F7 Windows/Linux ⌥⇧⌘F7 MacOS.





  • JetBrains Mono — JetBrains, , — . .
  • IDE Grazie, .
  • LightEdit Mode . , Tools | Create Command-line Launcher, ( Toolbox App, ). , , / , . -.
  • , . , Distraction Free Full Screen. , View | Appearance | Enter Zen Mode Quick Switch Scheme (Ctrl+` | View mode | Enter Zen Mode).
  • External Documentation https://pkg.go.dev https://godoc.org.
  • DefaultClassic Light.




, ! . , Twitter -. #goland-gophers Slack Go.


JetBrains GoLand


The Drive to Develop


All Articles