change struct

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-05-27 20:01:05 +02:00
parent c498e7bfdd
commit 637d9811f2
10 changed files with 55 additions and 55 deletions
+3 -3
View File
@@ -30,12 +30,12 @@ type UserResult struct {
}
func (r Recon) User(username string) (response UserResult) {
user, resp, err := r.client.Users.Get(r.ctx, username)
user, resp, err := r.Client.Users.Get(r.Ctx, username)
if resp.StatusCode == 404 {
r.logger.Fatal("User not found")
r.Logger.Fatal("User not found")
}
if err != nil {
r.logger.Fatal("Failed to fetch user's information", "err", err)
r.Logger.Fatal("Failed to fetch user's information", "err", err)
}
r.PrintTitle("👤 User informations")