阅读go项目源码,解决无法快速找到interface有哪些struct实现问题
2017-04-15 00:00
901 查看
阅读go项目源码时,不方便知道interface有哪些struct实现,很不方便。
list-interfaces这个工具,用来分析go项目源码,帮你快速找出interface有哪些struct实现。
list-interfaces使用
输出样例:
项目源码仓库
https://git.oschina.net/jscode/list-interfaces
下载地址
如果你的系统是fedora25 x86_64或兼容的系统,可以下载已编译好的二进制包。
http://oog2gj1e8.bkt.clouddn.com/list-interfaces
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
相关文章推荐
- 解决“Idea下项目无法找到*.xml配置文件”的问题
- IntelliJ IDEA中Spring Boot项目使用spring-boot-devtools无法实现热部署/热更新的问题解决
- 【问题解决】IDEA-Maven下Tomcat发布Web项目,遇到Jar包无法找到
- Myeclipse下打包spring+jms集成的项目,解决打成的jar包报无法找到xml的context的schema的问题
- 解决AndroidStudio从网络引入三方jar包,项目中无法找到类问题
- Maven项目中,关于Spring Boot 整合MyBatis时,Service层无法找到mapper接口的问题解决
- Android结合robotium实现自定义waitForText(String text),解决控件无法找到问题
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决 (android dependencies 源码)
- 无法打开 Web 项目“DottextWeb”问题的解决
- (转)VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- 一步一步SharePoint 2007之二十二:完美解决实现Form认证后无法再用SharePoint Designer编辑网站的问题
- [转-来自啊泰]推模式下dataset1下显示的是"...未找到项目..." 问题的解决[补充] [http://www.cnblogs.com/babyt/archive/2005/04/15/138588.html]
- 如何解决VS.NET无法调试项目问题?
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- 一步一步SharePoint 2007之二十二:完美解决实现Form认证后无法再用SharePoint Designer编辑网站的问题
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- 一步一步SharePoint 2007之二十二:完美解决实现Form认证后无法再用SharePoint Designer编辑网站的问题
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- VS2005 SP1发布,解决只能创建WebSite,无法创建Web Application项目的问题
- 如何解决“无法开始调试 无法找到 Microsoft Internet Explorer”的问题