func emailHandler(responseWriter http.ResponseWriter, request *http.Request) { request.ParseForm() //token := request.Form.Get("token") notable.SendEmail() //if validToken(token) { responseWriter.Header().Set("Content-Type", "text/html") responseWriter.Write([]byte(notable.Email())) //} }
func main() { if len(notable.Notes()) > 0 { notable.SendEmail() notable.Reset() } }