func clearHandler(responseWriter http.ResponseWriter, request *http.Request) { request.ParseForm() token := request.Form.Get("token") if validToken(token) && request.Method == "POST" { notable.Reset() } }
func main() { if len(notable.Notes()) > 0 { notable.SendEmail() notable.Reset() } }