Skip to content

Instantly share code, notes, and snippets.

View narukoshin's full-sized avatar
🎸
Music is a bigger part of me now.

Naru Koshin (EンコP) narukoshin

🎸
Music is a bigger part of me now.
View GitHub Profile
@narukoshin
narukoshin / sendMail.go
Last active August 30, 2021 18:43
Send SMTP email with Go
package main
import (
"crypto/tls"
"errors"
"log"
"net"
"net/smtp"
"strings"
)
@narukoshin
narukoshin / secretpassword.go
Last active August 30, 2021 13:46
no-echo input
package main
import (
"os"
"log"
// importing the term pacakge
"golang.org/x/term"
)
@narukoshin
narukoshin / smtp_login_auth.go
Created August 30, 2021 13:25 — forked from andelf/smtp_login_auth.go
golang net/smtp SMTP AUTH LOGIN Auth Handler
// MIT license (c) andelf 2013
import (
"net/smtp"
"errors"
)
type loginAuth struct {
username, password string