Remove todos
We are not planning to address them at this point.
This commit is contained in:
parent
b36fbd2a0e
commit
a334236cc3
@ -25,6 +25,3 @@ func main() {
|
||||
_, c := vals()
|
||||
fmt.Println(c)
|
||||
}
|
||||
|
||||
// todo: named return parameters
|
||||
// todo: naked returns
|
||||
|
@ -1,2 +1,2 @@
|
||||
9e0a75102d83565fefbf1893728b15633dc44a2c
|
||||
LrDt1Wah0M
|
||||
5063ce3d3c70c6bd70f4b709de24bb93d0f24e0c
|
||||
chwFmr5dG1
|
||||
|
@ -46,5 +46,3 @@ func main() {
|
||||
fmt.Println("timeout 2")
|
||||
}
|
||||
}
|
||||
|
||||
// todo: cancellation?
|
||||
|
@ -1,2 +1,2 @@
|
||||
48dc2824c813ec9195866592e4bed211fa9a5098
|
||||
CoBnJiRyx3
|
||||
5ea69771a4d4c6286fd587f91e03cd386f77cada
|
||||
NR2GHXUKeM
|
||||
|
@ -41,7 +41,7 @@ to return both result and error values from a function.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
<a href="http://play.golang.org/p/LrDt1Wah0M"><img title="Run code" src="play.png" class="run" /></a>
|
||||
<a href="http://play.golang.org/p/chwFmr5dG1"><img title="Run code" src="play.png" class="run" /></a>
|
||||
<div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
|
||||
</pre></div>
|
||||
|
||||
|
@ -42,7 +42,7 @@ elegant thanks to channels and <code>select</code>.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
<a href="http://play.golang.org/p/CoBnJiRyx3"><img title="Run code" src="play.png" class="run" /></a>
|
||||
<a href="http://play.golang.org/p/NR2GHXUKeM"><img title="Run code" src="play.png" class="run" /></a>
|
||||
<div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
|
||||
</pre></div>
|
||||
|
||||
|
@ -116,7 +116,6 @@ func debug(msg string) {
|
||||
}
|
||||
|
||||
var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s")
|
||||
var todoPat = regexp.MustCompile("\\/\\/ todo: ")
|
||||
var dashPat = regexp.MustCompile("\\-+")
|
||||
|
||||
type Seg struct {
|
||||
@ -161,9 +160,6 @@ func parseSegs(sourcePath string) ([]*Seg, string) {
|
||||
lastSeen = ""
|
||||
continue
|
||||
}
|
||||
if todoPat.MatchString(line) {
|
||||
continue
|
||||
}
|
||||
matchDocs := docsPat.MatchString(line)
|
||||
matchCode := !matchDocs
|
||||
newDocs := (lastSeen == "") || ((lastSeen != "docs") && (segs[len(segs)-1].Docs != ""))
|
||||
|
Loading…
x
Reference in New Issue
Block a user