remove # case
This commit is contained in:
parent
580225af65
commit
b16f814be0
@ -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
|
||||
|
@ -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
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user