Any tool recommendation for enumerating annotations (TODO, OPTIMIZE, FIXME) in a Go source tree?

xuanbao · · 494 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Basically, a nicer version to replace my rudimentary version </p> <pre><code>$ find ./src -name &#39;*.go&#39; -exec grep -niw &#39;TODO&#39; {} \; -print </code></pre> <hr/>**评论:**<br/><br/>lstokeworth: <pre><p>The <a href="https://godoc.org/go/doc">go/doc</a> package parses <a href="https://godoc.org/go/doc#Note">annotations</a> to <a href="https://godoc.org/go/doc#Package.Notes">Package.Notes</a>. </p> <p>Use the <a href="https://godoc.org/golang.org/x/tools/cmd/godoc">godoc -notes flag</a> to display the annotations in godoc.</p></pre>sseth: <pre><p>I find your rudimentary version to be elegant.</p> <p>I like to keep scripts in the src directory that contain things like this.</p></pre>dgryski: <pre><p>Also <a href="https://github.com/google/todo-tracks" rel="nofollow">https://github.com/google/todo-tracks</a></p></pre>izuriel: <pre><p>Here is a language agnostic solution: <a href="http://beyondgrep.com/" rel="nofollow">http://beyondgrep.com/</a></p> <p>I&#39;ve found ack extremely useful and simple to learn. </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

494 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传