Skip to content

Instantly share code, notes, and snippets.

View ashishtiwari1993's full-sized avatar
🏠
Working from home

Ashish Tiwari ashishtiwari1993

🏠
Working from home
View GitHub Profile
@andelf
andelf / smtp_login_auth.go
Created March 8, 2013 18:40
golang net/smtp SMTP AUTH LOGIN Auth Handler
// MIT license (c) andelf 2013
import (
"net/smtp"
"errors"
)
type loginAuth struct {
username, password string