diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-08-07 01:21:50 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-08-07 01:21:50 -0400 |
commit | 53a699d2b32a3d7a5268de7ac5b9c6daa0fc3975 (patch) | |
tree | 68f02d55abc33ad2d343d38237da58488da81aff /main.go | |
parent | 4f5b40328ba6f699264b073910222f22c43add7b (diff) |
Use single log length const
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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" |