golines --max-len=60

This commit is contained in:
Dmitrii Okunev
2024-10-16 22:58:55 +01:00
parent df42a4da66
commit fb33738f1c
73 changed files with 1812 additions and 433 deletions

View File

@@ -49,7 +49,10 @@ func OAuth2HandlerViaBrowser(ctx context.Context, arg OAuthHandlerArgument) erro
return err
}
fmt.Printf("Your browser has been launched (URL: %s).\nPlease approve the permissions.\n", arg.AuthURL)
fmt.Printf(
"Your browser has been launched (URL: %s).\nPlease approve the permissions.\n",
arg.AuthURL,
)
// Wait for the web server to get the code.
code := <-codeCh
@@ -75,7 +78,11 @@ func NewCodeReceiver(
fmt.Fprintf(w, "No code received :(\r\n\r\nYou can close this browser window.")
return
}
fmt.Fprintf(w, "Received code: %v\r\n\r\nYou can now safely close this browser window.", code)
fmt.Fprintf(
w,
"Received code: %v\r\n\r\nYou can now safely close this browser window.",
code,
)
}),
}