Untitled

func MakeHandler(filepath string) *AppHandler {
	router := mux.NewRouter()
	a := &AppHandler{
		Handler: router,
		db:      model.NewDBHandler(filepath),
	}

	router.HandleFunc("/todos", a.getTodoListHandler).Methods("GET")
	router.HandleFunc("/todos", a.addTodoHandler).Methods("POST")
	router.HandleFunc("/todos/{id:[0-9]+}", a.removeTodoHandler).Methods("DELETE")
	router.HandleFunc("/complete-todo/{id:[0-9]+}", a.completeTodoHandler).Methods("GET")
	**router.HandleFunc("/auth/google/login", googleLoginHandler)
	router.HandleFunc("/auth/google/callback", googleAuthCallback)**
	router.HandleFunc("/", a.indexHandler)

	return a
}
$ go get github.com/gorilla/sessions
package app

import ...

var store = sessions.NewCookieStore([]byte(os.Getenv("SESSION_KEY")))