You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, thanks for this client library! Just a small thing I noticed in the example code snippet, I beleive you want to dereference with a '*', otherwise you'll just get the memory address printed to the console:
fmt.Println(*rst.Candidates[0].Content.Parts[0])
instead of
fmt.Println(rst.Candidates[0].Content.Parts[0])
Cheers!
The text was updated successfully, but these errors were encountered:
Hi all, thanks for this client library! Just a small thing I noticed in the example code snippet, I beleive you want to dereference with a '*', otherwise you'll just get the memory address printed to the console:
instead of
Cheers!
The text was updated successfully, but these errors were encountered: