Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
vision
✓ cloud.google.com/go/vision/v2/apiv1
Create a Vision client and detect labels.
package main
import (
"context"
"fmt"
vision "cloud.google.com/go/vision/v2/apiv1"
"cloud.google.com/go/vision/v2/apiv1/visionpb"
)
func main() {
ctx := context.Background()
client, _ := vision.NewImageAnnotatorClient(ctx)
resp, _ := client.DetectLabels(ctx, &visionpb.AnnotateImageRequest{})
fmt.Println(resp)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.14.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.