Go 如何在CLI中列出类型满足的接口?

Go 如何在CLI中列出类型满足的接口?,go,interface,Go,Interface,我无法使用以下命令: oracle -pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null_log.go:#20 implements oracle-pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null#log.go#3 我得到的错误是: oracle:源位置无效-pos=$GOPATH/src/path

我无法使用以下命令:

oracle -pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null_log.go:#20 implements
oracle-pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null#log.go#3

我得到的错误是:

oracle:源位置无效-pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null_log.go#3

我想列出在上面路径中找到的包的第3行上找到的
nullLog
struct所满足的接口

如果
oracle
是解决我的问题的正确工具,我如何正确使用它?
如果没有,是否可以使用其他工具来完成此任务?

使用以下命令:

oracle -pos=$GOPATH/src/path/to/project/vendor/github.com/quickfixgo/quickfix/null_log.go:#20 implements
注意“:”这个位置是文件中的字节偏移量

oracle工具旨在从编辑器插件中使用,该插件计算文件中的偏移量

以下是我使用当前版本的quickfix运行工具时的输出:

$ oracle -pos=$GOPATH/src/github.com/quickfixgo/quickfix/null_log.go:#20 implements
/Users/muffin/gopath/src/github.com/quickfixgo/quickfix/null_log.go:3:6: struct type nullLog
/Users/muffin/gopath/src/github.com/quickfixgo/quickfix/log.go:4:6:     implements Log

你说得对。现在我得到了
oracle:no type或method here
。我的命令不完整吗?我想我不明白偏移量在这里是什么意思。偏移量为20在我的机器上也可以正常工作。为什么偏移量在指向
func NewNullLogFactory
时起作用,而不是在偏移量3指向
type nullLog struct{}
时起作用?偏移量是文件中字节的索引。我刚刚发现
oracle help
包含一个链接,可以确认您的解释。非常感谢。