mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-03 12:57:36 +08:00
Run gofmt
This commit is contained in:
parent
ed8122cd3b
commit
9b771cbac6
@ -45,7 +45,7 @@ var (
|
||||
isValidUsername = regexp.MustCompile(`^\w{1,16}$`).MatchString
|
||||
semaphore = make(chan bool, ArgonMaxInstances)
|
||||
|
||||
GameURL string
|
||||
GameURL string
|
||||
OAuthCallbackURL string
|
||||
)
|
||||
|
||||
|
@ -25,9 +25,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
DiscordClientID string
|
||||
DiscordClientID string
|
||||
DiscordClientSecret string
|
||||
DiscordCallbackURL string
|
||||
DiscordCallbackURL string
|
||||
)
|
||||
|
||||
func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, error) {
|
||||
|
@ -27,9 +27,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
GoogleClientID string
|
||||
GoogleClientID string
|
||||
GoogleClientSecret string
|
||||
GoogleCallbackURL string
|
||||
GoogleCallbackURL string
|
||||
)
|
||||
|
||||
func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error) {
|
||||
|
@ -61,11 +61,11 @@ func main() {
|
||||
|
||||
account.DiscordClientID = *discordclientid
|
||||
account.DiscordClientSecret = *discordsecretid
|
||||
account.DiscordCallbackURL = *callbackurl+"/auth/discord/callback"
|
||||
account.DiscordCallbackURL = *callbackurl + "/auth/discord/callback"
|
||||
|
||||
account.GoogleClientID = *googleclientid
|
||||
account.GoogleClientSecret = *googlesecretid
|
||||
account.GoogleCallbackURL = *callbackurl+"/auth/google/callback"
|
||||
account.GoogleCallbackURL = *callbackurl + "/auth/google/callback"
|
||||
|
||||
// register gob types
|
||||
gob.Register([]interface{}{})
|
||||
|
Loading…
x
Reference in New Issue
Block a user