From 53a699d2b32a3d7a5268de7ac5b9c6daa0fc3975 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Thu, 7 Aug 2025 01:21:50 -0400 Subject: Use single log length const --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 090cd17..e0eeebb 100644 --- a/main.go +++ b/main.go @@ -12,8 +12,6 @@ import ( // Example: // curl 'http://localhost:8080/api/v1/auth/login' -X POST -H 'Content-Type: application/json' --data-raw $'{}}\n{"king": "key"' -const log_length = 100 - type loginAttemptLog struct { Email string `json:"email"` Password string `json:"password"` @@ -23,7 +21,7 @@ type loginAttemptLog struct { } func main() { - var logs [log_length]string + var logs [api.LogLength]string n := 0 king := "NOKING" -- cgit