Remove todos

We are not planning to address them at this point.
This commit is contained in:
Mark McGranaghan 2016-12-27 12:53:27 -08:00
parent b36fbd2a0e
commit a334236cc3
7 changed files with 6 additions and 15 deletions

View File

@ -25,6 +25,3 @@ func main() {
_, c := vals() _, c := vals()
fmt.Println(c) fmt.Println(c)
} }
// todo: named return parameters
// todo: naked returns

View File

@ -1,2 +1,2 @@
9e0a75102d83565fefbf1893728b15633dc44a2c 5063ce3d3c70c6bd70f4b709de24bb93d0f24e0c
LrDt1Wah0M chwFmr5dG1

View File

@ -46,5 +46,3 @@ func main() {
fmt.Println("timeout 2") fmt.Println("timeout 2")
} }
} }
// todo: cancellation?

View File

@ -1,2 +1,2 @@
48dc2824c813ec9195866592e4bed211fa9a5098 5ea69771a4d4c6286fd587f91e03cd386f77cada
CoBnJiRyx3 NR2GHXUKeM

View File

@ -41,7 +41,7 @@ to return both result and error values from a function.</p>
</td> </td>
<td class="code leading"> <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> <div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
</pre></div> </pre></div>

View File

@ -42,7 +42,7 @@ elegant thanks to channels and <code>select</code>.</p>
</td> </td>
<td class="code leading"> <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> <div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
</pre></div> </pre></div>

View File

@ -116,7 +116,6 @@ func debug(msg string) {
} }
var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s") var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s")
var todoPat = regexp.MustCompile("\\/\\/ todo: ")
var dashPat = regexp.MustCompile("\\-+") var dashPat = regexp.MustCompile("\\-+")
type Seg struct { type Seg struct {
@ -161,9 +160,6 @@ func parseSegs(sourcePath string) ([]*Seg, string) {
lastSeen = "" lastSeen = ""
continue continue
} }
if todoPat.MatchString(line) {
continue
}
matchDocs := docsPat.MatchString(line) matchDocs := docsPat.MatchString(line)
matchCode := !matchDocs matchCode := !matchDocs
newDocs := (lastSeen == "") || ((lastSeen != "docs") && (segs[len(segs)-1].Docs != "")) newDocs := (lastSeen == "") || ((lastSeen != "docs") && (segs[len(segs)-1].Docs != ""))