remove # case
This commit is contained in:
parent
580225af65
commit
b16f814be0
@ -1,9 +1,7 @@
|
|||||||
## header
|
|
||||||
title
|
title
|
||||||
contents
|
contents
|
||||||
introduction
|
introduction
|
||||||
|
|
||||||
## basics
|
|
||||||
hello-world
|
hello-world
|
||||||
values
|
values
|
||||||
variables
|
variables
|
||||||
@ -32,7 +30,6 @@ interfaces
|
|||||||
errors
|
errors
|
||||||
ok-guards
|
ok-guards
|
||||||
|
|
||||||
## concurrency
|
|
||||||
goroutines
|
goroutines
|
||||||
concurrent-goroutines
|
concurrent-goroutines
|
||||||
channels
|
channels
|
||||||
@ -51,7 +48,6 @@ tickers
|
|||||||
state-goroutine
|
state-goroutine
|
||||||
state-mutex
|
state-mutex
|
||||||
|
|
||||||
## core libraries
|
|
||||||
sorting
|
sorting
|
||||||
sorting-by-functions
|
sorting-by-functions
|
||||||
collection-functions
|
collection-functions
|
||||||
@ -69,7 +65,6 @@ urls
|
|||||||
sha1-hashes
|
sha1-hashes
|
||||||
base64-encoding
|
base64-encoding
|
||||||
|
|
||||||
## systems libraries
|
|
||||||
reading-files
|
reading-files
|
||||||
writing-files
|
writing-files
|
||||||
line-filters
|
line-filters
|
||||||
@ -81,14 +76,11 @@ execing-processes
|
|||||||
signals
|
signals
|
||||||
exit
|
exit
|
||||||
|
|
||||||
## client libraries
|
|
||||||
http-client
|
http-client
|
||||||
https-client
|
https-client
|
||||||
redis
|
redis
|
||||||
postgres
|
postgres
|
||||||
sending-email
|
|
||||||
|
|
||||||
## web apps
|
|
||||||
hello-web
|
hello-web
|
||||||
responses
|
responses
|
||||||
request-routing
|
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")
|
indexLines := strings.Split(string(indexBytes), "\n")
|
||||||
indexNames := make([]string, 0)
|
indexNames := make([]string, 0)
|
||||||
for _, indexLine := range indexLines {
|
for _, indexLine := range indexLines {
|
||||||
if indexLine != "" && !strings.Contains(indexLine, "#") {
|
if indexLine != "" {
|
||||||
indexNames = append(indexNames, indexLine)
|
indexNames = append(indexNames, indexLine)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user