Run gofmt

pull/47/merge
Pancakes 2 months ago
parent ed8122cd3b
commit 9b771cbac6
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -45,7 +45,7 @@ var (
isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString
semaphore = make(chan bool, ArgonMaxInstances) semaphore = make(chan bool, ArgonMaxInstances)
GameURL string GameURL string
OAuthCallbackURL string OAuthCallbackURL string
) )

@ -25,9 +25,9 @@ import (
) )
var ( var (
DiscordClientID string DiscordClientID string
DiscordClientSecret string DiscordClientSecret string
DiscordCallbackURL string DiscordCallbackURL string
) )
func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, error) { func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, error) {

@ -27,9 +27,9 @@ import (
) )
var ( var (
GoogleClientID string GoogleClientID string
GoogleClientSecret string GoogleClientSecret string
GoogleCallbackURL string GoogleCallbackURL string
) )
func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error) { func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error) {

@ -61,11 +61,11 @@ func main() {
account.DiscordClientID = *discordclientid account.DiscordClientID = *discordclientid
account.DiscordClientSecret = *discordsecretid account.DiscordClientSecret = *discordsecretid
account.DiscordCallbackURL = *callbackurl+"/auth/discord/callback" account.DiscordCallbackURL = *callbackurl + "/auth/discord/callback"
account.GoogleClientID = *googleclientid account.GoogleClientID = *googleclientid
account.GoogleClientSecret = *googlesecretid account.GoogleClientSecret = *googlesecretid
account.GoogleCallbackURL = *callbackurl+"/auth/google/callback" account.GoogleCallbackURL = *callbackurl + "/auth/google/callback"
// register gob types // register gob types
gob.Register([]interface{}{}) gob.Register([]interface{}{})

Loading…
Cancel
Save