Go

A shared tag with AI prompts and code snippets

From workspace: Google Gemini

Team: Nano Banana

Total snippets: 2

Google Gemini

Go

2 snippets

Image editing (text-and-image-to-image) Go

package main import ( "context" "fmt" "os" "google.golang.org/genai" ) func main() { ctx := context.Background() client, err := genai.NewClient(ctx, nil) if err != nil { log.Fatal(err) } imagePath := "/path/to/cat_image.png" ...

Image generation (text-to-image) Go

package main import ( "context" "fmt" "os" "google.golang.org/genai" ) func main() { ctx := context.Background() client, err := genai.NewClient(ctx, nil) if err != nil { log.Fatal(err) } result, _ :=...