The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
yujianwjj

goland 阅读 go 代码,经常跳着跳着就跳到一个接口,怎么快速定位到这个接口的实现?

  •  
  •   yujianwjj · Dec 25, 2020 · 4731 views
    This topic created in 2148 days ago, the information mentioned may be changed or developed.
    21 replies  •  2020-12-26 13:35:22 +08:00
    boboliu
    boboliu
    Dec 25, 2020❤️1
    1
    用 goland,jb 大法好
    to2false
    to2false
    Dec 25, 2020
    2
    接口方法左侧栏有个向下的箭头,点下会罗列出相关实现该接口的
    jonathanchoo
    jonathanchoo
    Dec 25, 2020 via iPhone
    3
    Goland
    keepeye
    keepeye
    Dec 25, 2020
    4
    右击 go to -> implementation(s)
    2kCS5c0b0ITXE5k2
    2kCS5c0b0ITXE5k2
    Dec 25, 2020
    5
    @boboliu 都不看标题的吗
    Goat121
    Goat121
    Dec 25, 2020
    6
    代码左边不是有个绿色的点,里面一个字母 I,旁边一个箭头,点一下就行了
    chendy
    chendy
    Dec 25, 2020
    7
    action: go to implementation
    realityone
    realityone
    Dec 25, 2020❤️3
    8
    绝活,搜索:

    ) XXXXX(
    Reficul
    Reficul
    Dec 25, 2020
    9
    @realityone 你那是 VsCode 的绝活;
    9LCRwvU14033RHJo
    9LCRwvU14033RHJo
    Dec 25, 2020
    10
    @realityone 啥意思?
    JRyan
    JRyan
    Dec 25, 2020 via iPhone
    11
    碰到一个接口有很多个实现的时候就很蛋疼了,比如 io.Reader
    cheng6563
    cheng6563
    Dec 25, 2020
    12
    我猜是 Ctrl+ALt+B
    CoderGeek
    CoderGeek
    Dec 25, 2020
    13
    我也是刚学 go 很多接口实现类一堆 哭了
    asilin
    asilin
    Dec 25, 2020
    14
    F4
    darrh00
    darrh00
    Dec 25, 2020
    15
    用 vscode 吧,这么简单的功能
    liulaomo
    liulaomo
    Dec 25, 2020
    16
    kzzhr
    kzzhr
    Dec 25, 2020 via iPhone
    17
    我一直觉得 dehug 是最好的读代码工具
    raaaaaar
    raaaaaar
    Dec 26, 2020 via Android
    18
    GoLand 左边有个箭头,点一下
    leoleoasd
    leoleoasd
    Dec 26, 2020❤️1
    19
    joesonw
    joesonw
    Dec 26, 2020
    20
    option + cmd 点击
    boboliu
    boboliu
    Dec 26, 2020 via Android
    21
    @emeab 是我瞎了认错了词,没想到 goland 那个 jump to impl 的图标那么显眼没人看到
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 09:30 · PVG 17:30 · LAX 01:30 · JFK 04:30
    ♥ Do have faith in what you're doing.