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

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

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

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