阅读go项目源码,解决无法快速找到interface有哪些struct实现问题
2020-02-13 03:19
721 查看
阅读go项目源码时,不方便知道interface有哪些struct实现,很不方便。
list-interfaces这个工具,用来分析go项目源码,帮你快速找出interface有哪些struct实现。
list-interfaces使用
list-interfaces --codedir /appdev/gopath/src/github.com/contiv/netplugin \ --gopath /appdev/gopath \ --outputfile /tmp/result 参数说明 --codedir 要分析的代码目录 --gopath GOPATH环境变量目录 --outputfile 分析结果保存到该文件
输出样例:
interface item 在文件/appdev/gopath/src/github.com/contiv/netplugin/vendor/google.golang.org/grpc/transport/transport.go中 有2个struct实现了接口 struct windowUpdate 在文件/appdev/gopath/src/github.com/contiv/netplugin/vendor/google.golang.org/grpc/transport/control.go中 struct settings 在文件/appdev/gopath/src/github.com/contiv/netplugin/vendor/google.golang.org/grpc/transport/control.go中
项目源码仓库
https://git.oschina.net/jscode/list-interfaces
下载地址
如果你的系统是fedora25 x86_64或兼容的系统,可以下载已编译好的二进制包。
http://oog2gj1e8.bkt.clouddn.com/list-interfaces
转载于:https://my.oschina.net/u/1263909/blog/880151
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 阅读go项目源码,解决无法快速找到interface有哪些struct实现问题
- 解决AndroidStudio从网络引入三方jar包,项目中无法找到类问题
- Myeclipse下打包spring+jms集成的项目,解决打成的jar包报无法找到xml的context的schema的问题
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决 (android dependencies 源码)
- 【问题解决】IDEA-Maven下Tomcat发布Web项目,遇到Jar包无法找到
- Maven项目中,关于Spring Boot 整合MyBatis时,Service层无法找到mapper接口的问题解决
- 解决“Idea下项目无法找到*.xml配置文件”的问题
- 解决使用Spring Boot、Multipartfile实现上传提示无法找到文件的问题
- Android结合robotium实现自定义waitForText(String text),解决控件无法找到问题
- IntelliJ IDEA中Spring Boot项目使用spring-boot-devtools无法实现热部署/热更新的问题解决
- vs.net2003打开Web项目提示物理路径与url路径无法验证问题的解决
- 【WinCE】WinCE程序开发中出现“无法找到PInvoke DLL"Kernel32.dll"”问题的一种解决方法
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- VS2005无法创建或打开”智能设备”项目的一个问题的解决方法
- 无法打开 Web 项目“DottextWeb”问题的解决
- 一步一步SharePoint 2007之十七:解决实现Form认证后无法再用SharePoint Designer编辑网站的问题
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- 解决Linux下安装VMWareTool问题:无法找到C header files for kernel
- 关于VC6IDE的class view的问题(Go To Definition不能找到定义(实现))