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
@@ -11,16 +11,16 @@ type SocialResult struct {
}
func (r Recon) Socials(username string) (response []SocialResult) {
resp, err := FetchGitHubAPI(r.client, "", "/users/"+username+"/social_accounts")
resp, err := FetchGitHubAPI(r.Client, "", "/users/"+username+"/social_accounts")
if err != nil {
r.logger.Error("Failed to fetch socials", "err", err)
r.Logger.Error("Failed to fetch socials", "err", err)
return
}
var socialAccounts []SocialResult
err = json.Unmarshal(resp, &socialAccounts)
if err != nil {
r.logger.Error("Failed to unmarshal socials", "err", err)
r.Logger.Error("Failed to unmarshal socials", "err", err)
return
}