GoLand 2020.1: soporte mejorado para módulos Go, mucha autocompletación y mucho más

Hola Habr!


Hace poco más de una semana, lanzamos una nueva versión de nuestro IDE para Go - GoLand 2020.1 .




En resumen, en este ciclo de lanzamiento, nos enfocamos en expandir el soporte actual para Go Modules. Por ejemplo, la go.modfinalización del código, la refactorización y la navegación ahora funcionan en un archivo , ¡y eso no es todo!


. . , . 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