<p>Basically, a nicer version to replace my rudimentary version </p>
<pre><code>$ find ./src -name '*.go' -exec grep -niw 'TODO' {} \; -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've found ack extremely useful and simple to learn. </p></pre>
Any tool recommendation for enumerating annotations (TODO, OPTIMIZE, FIXME) in a Go source tree?
xuanbao · · 509 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传