哈Ha!
一个多星期前,我们发布了Go- GoLand 2020.1的 IDE的新版本。
![](https://habrastorage.org/webt/4o/w8/ht/4ow8httkqlctvhwl7vxhcivvkly.png)
简而言之,在这个发布周期中,我们专注于扩展对Go Modules的当前支持。例如,go.mod
代码完成,重构和导航现在可以在文件中工作,而这还不是全部!
. . , . 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.
![](https://habrastorage.org/webt/9f/xl/yi/9fxlyivduprp3dmhab7ic1z7uw4.gif)
go
, module
, require
, replace
, exclude
, replace
go.mod
.
![](https://habrastorage.org/webt/xp/qm/fs/xpqmfsyntl_zeepor5iiqvnbvqs.gif)
, replace
, Move Rename .
![](https://habrastorage.org/webt/pq/bz/uq/pqbzuqgplrsy170973acddamnsy.gif)
, go.mod
, Find Usages Project View.
![](https://habrastorage.org/webt/g0/sv/aa/g0svaa3aftcvmi_qhnxuey-fkug.gif)
Alt-Enter.
![](https://habrastorage.org/webt/x1/ey/lj/x1eyljslytzpl5pzrvx_jbef9rs.gif)
, , go.mod
replace-.
![](https://habrastorage.org/webt/wn/h3/ot/wnh3otkpmcrallwubnx7p4lif2k.gif)
,
GoLand 2020.1 if err != nil { ... }
. if
.
![](https://habrastorage.org/webt/5r/ro/_x/5rro_xcmxaa-gcinxddwjnmmohk.gif)
, type
struct
interface
.
![](https://habrastorage.org/webt/9p/ef/gf/9pefgfpnnmkrqij34y9vvul45u0.gif)
Fill Fields , . .
![](https://habrastorage.org/webt/j9/be/oh/j9beohgbtfigvr5ytgk3owcdd8u.gif)
, .
![](https://habrastorage.org/webt/ew/sx/eo/ewsxeoca64cme3ndabvl8qgtwxa.gif)
, .
![](https://habrastorage.org/webt/lc/z-/vy/lcz-vy3cob-zg4vv3fov5xrg7uu.gif)
Smart Code Completion (⌃⇧Space Ctrl+Shift+Space)
.
![](https://habrastorage.org/webt/o5/vu/h7/o5vuh7gluefou2jvh0nrrehup-e.gif)
, .
![](https://habrastorage.org/webt/ot/hr/cp/othrcpvd2-8zigjejt45al_tb8k.gif)
.
![](https://habrastorage.org/webt/5j/n8/ot/5jn8otniu4ryb2qn3sxwe5gudie.gif)
, GoLand 2020.1 .
![](https://habrastorage.org/webt/da/mq/5s/damq5swqpwwysge-fldzcndlbyk.gif)
Basic Code Completion (⌃Space or Ctrl+Space)
Basic Code Completion . .
![](https://habrastorage.org/webt/pz/ml/je/pzmlje6k2yvxzjfr2dcjasq6jwo.gif)
, Basic Code Completion .
![](https://habrastorage.org/webt/mp/1q/4p/mp1q4pnsjez6sszihcqubbkumga.gif)
, , GoLand 2020.1 , .
![](https://habrastorage.org/webt/rh/ll/uq/rhlluqhnw10umf7ldyvxukejyrs.gif)
, IDE .
![](https://habrastorage.org/webt/vw/yz/wb/vwyzwbbst6dtimwk6mwmymifd5k.gif)
, , , 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 ( ).
![](https://habrastorage.org/webt/65/tn/ay/65tnay0wkb2l5dckmflvdggnsmu.gif)
. Run/Debug Configurations + Go Tool Program arguments, Macros .
![](https://habrastorage.org/webt/r1/qt/lp/r1qtlptslwir8zfclyilbl5lncq.gif)
, . Store Run/Debug Configurations.
.else if , .
![](https://habrastorage.org/webt/id/4a/6a/id4a6a8tjjhe_rfpypn82gsu-8u.gif)
Alt+Enter.
![](https://habrastorage.org/webt/b9/c2/ax/b9c2axiy7t7ermreq5-roaei-bg.gif)
Create variable , .
![](https://habrastorage.org/webt/nx/tf/nt/nxtfnt3rvgknh2xhtqn5pjwcoka.gif)
- , . .
![](https://habrastorage.org/webt/nx/-7/sg/nx-7sgoykgvemv6dpbj0pyl6fyi.gif)
Invalid conversions of uintptr to unsafe.Pointer uintptr
unsafe.Pointer
.
![](https://habrastorage.org/webt/pu/ga/kw/pugakwxcde0lx6ympmulmfvdxes.png)
Unmarshal is called with incorrect argument json.Unmarshal
encoding/json
, encoding/xml
encoding/gob
.
![](https://habrastorage.org/webt/xx/ju/fb/xxjufbe2fnlaz55_u1yqu-0q-se.png)
Locks mistakenly passed by value sync.Locker
.
![](https://habrastorage.org/webt/w4/vk/vw/w4vkvwmd2oyxqegxiprzwozertq.gif)
Live templates
consts, vars, types imports . GoLand . fori for-loop.
![](https://habrastorage.org/webt/cj/sx/fa/cjsxfaplaiv4kon5adesejs88ea.gif)
Extract Method . Rename . , , IDE . , .
![](https://habrastorage.org/webt/ek/8e/dx/ek8edx7fhx9pfkvrkwfc-t76mke.gif)
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.
![](https://habrastorage.org/webt/q2/lw/qa/q2lwqakkh1ueamtu0dcwk-vdc5u.gif)
- 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.
- Default — Classic Light.
![](https://habrastorage.org/webt/0e/qj/6i/0eqj6irjbz-iipqpzsbh9z7r3_o.png)
, ! . , Twitter -. #goland-gophers Slack Go.
JetBrains GoLand
The Drive to Develop