Skip to content

Small bug / typo in example? #2

@princefishthrower

Description

@princefishthrower

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions