Documentation ¶ Index ¶ func Login(res http.ResponseWriter, req *http.Request) func Success(res http.ResponseWriter, req *http.Request) type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Login ¶ func Login(res http.ResponseWriter, req *http.Request) Login is the handler function that will handle the login with google button href. func Success ¶ func Success(res http.ResponseWriter, req *http.Request) Success verifies the User info after Google returns from authentication. Types ¶ type User ¶ type User struct { Email string `json:"email"` VerifiedEmail bool `json:"verified_email"` Name string `json:"name"` // contains filtered or unexported fields } User represents what gets returned by the Google api cobbled with what the program adds. var CurrentUser User Source Files ¶ View all Source files oauth.go Click to show internal directories. Click to hide internal directories.