mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +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
|
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…
x
Reference in New Issue
Block a user