我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Golang-如何检查其他源文件中引用的功能?

I'm a fresh man of golang and here is my problem:

  1. I have a array of function names like this: [FunctionA FunctionB]
  2. I want to check if those functions are referenced in other source files like: somefile.go.

What is the best way to achieve this?

In one word: How can I verify some functions are used in other source files in golang?

[Update]

Yes, it's something like grep -rl "funcName" files, but how can I omit comments in this case?

近期文章

  • go:在其输入参数中输出结果的存根方法
  • Golang HTTP服务器从一个请求获得了两个远程端口
  • 如何使用Go Map从Mongo检索非结构化数据形式
  • 像给定示例一样,通过字段名称更新mongo事务
  • 如何将Go数组传递给C?
  • 调用Go RPC TCP服务时Ruby Socket Client挂起
  • 尝试在Go中实现端口扫描程序
  • google appengine golang API-InstanceClass
  • 如何使用go在mongodb中插入嵌套结构的多个值
  • 如何克服Golang中每个程序包都包含可构建代码的要求?
  • parse.com提出了错误的SSL证书
  • 如何判断tcplistener是否关闭?
  • 将Flyspell-prog-mode与go-autocomplete一起使用
  • 为什么glDrawArrays失败并显示GL_INVALID_OPERATION?
  • 请问这个报错怎么解决
  • March of the Penguins 程序的写法
  • Soccer Tournament 不会写
  • Escape from Enemy Territory 的程序的做法
  • Obfuscation 的问题怎么做
  • 怎样查看Windows API中sendmessage中参数的消息类型?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华