add support for sending emails

Change-Id: I9749cda3b997d70271cb4ca709a7cca82a9a0948
This commit is contained in:
dm
2016-06-10 12:57:41 -07:00
committed by sm
parent 227eb4a551
commit 480304bd87
6 changed files with 370 additions and 34 deletions
+10
View File
@@ -11,6 +11,7 @@ import (
"fmt"
"io"
"strings"
"time"
)
var vcss = map[string]bool{
@@ -41,6 +42,15 @@ type Package struct {
Ns string `json:"-"`
}
// User stores the information about a user including email used, their
// token, whether they have registerd and the requested timestamp
type User struct {
Email string
Token string
Registered bool
Requested time.Time
}
func (p Package) String() string {
return fmt.Sprintf(
"<meta name=\"go-import\" content=\"%s %s %s\">",