From ebb93a9f2b308eb44c9fec623521cd14ef398b3e Mon Sep 17 00:00:00 2001 From: MineGame159 Date: Sun, 13 Oct 2024 11:48:08 +0200 Subject: [PATCH] Fix code formatting --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c051528..3b667d1 100644 --- a/main.go +++ b/main.go @@ -2,13 +2,13 @@ package main import ( "context" + "fmt" "github.com/robinbraemer/event" "go.minekube.com/common/minecraft/color" "go.minekube.com/common/minecraft/component" "go.minekube.com/gate/cmd/gate" "go.minekube.com/gate/pkg/edition/java/proxy" "mcauth/codes" - "strconv" ) func main() { @@ -44,7 +44,7 @@ func onLogin(e *proxy.PostLoginEvent) { Content: "Your one time verification code:\n\n", Extra: []component.Component{ &component.Text{ - Content: strconv.Itoa(code), + Content: fmt.Sprintf("%06d", code), S: component.Style{ Bold: component.True, Underlined: component.True,