remove # case

This commit is contained in:
Mark McGranaghan 2012-10-07 08:28:35 -07:00
parent 580225af65
commit b16f814be0
3 changed files with 1 additions and 39 deletions

View File

@ -1,9 +1,7 @@
## header
title
contents
introduction
## basics
hello-world
values
variables
@ -32,7 +30,6 @@ interfaces
errors
ok-guards
## concurrency
goroutines
concurrent-goroutines
channels
@ -51,7 +48,6 @@ tickers
state-goroutine
state-mutex
## core libraries
sorting
sorting-by-functions
collection-functions
@ -69,7 +65,6 @@ urls
sha1-hashes
base64-encoding
## systems libraries
reading-files
writing-files
line-filters
@ -81,14 +76,11 @@ execing-processes
signals
exit
## client libraries
http-client
https-client
redis
postgres
sending-email
## web apps
hello-web
responses
request-routing

View File

@ -1,30 +0,0 @@
// ## Sending Email
package main
import "net/smtp"
func main() {
auth := smtp.PlainAuth(
"",
"mark@heroku.com",
"xxx",
"smtp.gmail.com",
)
err := smtp.SendMail(
"smtp.gmail.com:25",
auth,
"mark+sent@heroku.com",
[]string{"mark@heroku.com"},
[]byte("nThe body."),
)
if err != nil {
panic(err)
}
}
// todo: missing subject, cc, bcc
// todo: attachements
// todo: plain/multi-type emails
// todo: mtoader/google-go-lang-idea-plugin/issues/112

View File

@ -192,7 +192,7 @@ func main() {
indexLines := strings.Split(string(indexBytes), "\n")
indexNames := make([]string, 0)
for _, indexLine := range indexLines {
if indexLine != "" && !strings.Contains(indexLine, "#") {
if indexLine != "" {
indexNames = append(indexNames, indexLine)
}
}