From b16f814be048b8d65e53909fd15d3fc4c261d47a Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 7 Oct 2012 08:28:35 -0700 Subject: [PATCH] remove # case --- src/index.txt | 8 -------- src/sending-email/sending-email.go | 30 ------------------------------ tool/build-html.go | 2 +- 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 src/sending-email/sending-email.go diff --git a/src/index.txt b/src/index.txt index ecdf206..83b8dc8 100644 --- a/src/index.txt +++ b/src/index.txt @@ -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 diff --git a/src/sending-email/sending-email.go b/src/sending-email/sending-email.go deleted file mode 100644 index 8627dad..0000000 --- a/src/sending-email/sending-email.go +++ /dev/null @@ -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 diff --git a/tool/build-html.go b/tool/build-html.go index 05ab5f4..468f2a6 100644 --- a/tool/build-html.go +++ b/tool/build-html.go @@ -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) } }