Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/golang-samples
/ functions
Functions
5,023 in github.com/GoogleCloudPlatform/golang-samples
⨍
Functions
5,023
◇
Types & classes
329
Function
caseEditorServiceUI
(t *testing.T)
run/testing/markdown_preview_editor.e2e_test.go:64
Function
checkDatastoreMode
[END gae_go_capabilities_lookup] [START gae_go_capabilities_mode]
docs/appengine/capabilities/capability.go:38
Function
classifyTextFromGCS
[END language_syntax_gcs] [START language_classify_gcs]
language/snippets/snippet.go:80
Function
commitStats
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_commit_stats.go:27
Function
confirm
(_ http.ResponseWriter, r *http.Request)
docs/appengine/mail/mail.go:34
Function
constructCAB
constructCAB shows how to initialize a Credential Access Boundary for downscoping tokens.
auth/downscoping/initialize_CAB.go:22
Function
constructFeaturedJob
[START job_featured_job] constructFeaturedJob constructs a job as featured/promoted one.
jobs/v3/howto/featured_job_search_sample.go:30
Function
constructJobWithCustomAttributes
[START job_custom_attribute_job] constructJobWithCustomAttributes constructs a job with custom attributes.
jobs/v3/howto/custom_attribute_sample.go:30
Function
copyBackup
copyBackup copies an existing backup to a given instance in same or different region, or in same or different project.
spanner/spanner_snippets/spanner/spanner_copy_backup.go:31
Function
createBackup
(ctx context.Context, w io.Writer, db, backupID string, versionTime time.Time)
spanner/spanner_snippets/spanner/spanner_create_backup.go:31
Function
createChainedQuery
(client *firestore.Client)
firestore/query.go:100
Function
createClientWithKey
()
translate/snippets/snippet.go:28
Function
createClientWithQueryOptions
(w io.Writer, database string)
spanner/spanner_snippets/spanner/spanner_create_client_with_query_options.go:30
Function
createClients
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_clients.go:28
Function
createCollectionReference
(client *firestore.Client)
firestore/retrieve_data_reference_collection.go:23
Function
createDatabase
[START spanner_create_database]
spanner/spanner_snippets/snippet.go:77
Function
createDatabase
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_database.go:28
Function
createDatabaseWithPropertyGraph
(ctx context.Context, w io.Writer, dbId string)
spanner/spanner_snippets/spanner/spanner_create_database_with_property_graph.go:29
Function
createDatabaseWithRetentionPeriod
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_database_with_retention_period.go:28
Function
createDiskFromDisk
createDiskFromDisk creates a new disk with the contents of an already existitng disk. Type, and size and zone may differ.
compute/disks/create_disk_from_disk.go:30
Function
createDiskFromKmsEncryptedDisk
Creates a zonal non-boot persistent disk in a project with the copy of data from an existing disk. The encryption key must be the same for the source
compute/disks/clone_kms_encrypted_disk.go:31
Function
createDocReference
(client *firestore.Client)
firestore/retrieve_data_reference_document.go:23
Function
createDocReferenceFromString
(client *firestore.Client)
firestore/retrieve_data_reference_document_path.go:23
Function
createDownscopedToken
createDownscopedToken would be run on the token broker in order to generate a downscoped access token that only grants access to objects whose name be
auth/downscoping/token_broker.go:31
Function
createFullBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_create_full_backup_schedule.go:30
Method
createHandler
[END getting_started_bookshelf_storage] createHandler adds a book to the database.
getting-started/bookshelf/main.go:235
Function
createImageFromImage
Creates a disk image from an existing image
compute/disk-images/create_disk_from_image.go:28
Function
createIncrementalBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_create_incremental_backup_schedule.go:30
Function
createInstance
(w io.Writer, projectID, instanceID string)
spanner/spanner_snippets/spanner/spanner_create_instance.go:27
Function
createInstancePartition
Example of creating an instance partition with Go. projectID is the ID of the project that the new instance partition will be in. instanceID is the ID
spanner/spanner_snippets/spanner/spanner_create_instance_partition.go:31
Function
createInstanceWithAsymmetricAutoscalingConfig
createInstanceWithAsymmetricAutoscalingConfig is a code snippet to show an example of creating an asymmetric autoscaling enabled instance in Go. proj
spanner/spanner_snippets/spanner/spanner_create_instance_with_asymmetric_autoscaling.go:33
Function
createInstanceWithAutoscalingConfig
Example of creating an autoscaling instance with Go. projectID is the ID of the project that the new instance will be in. instanceID is the ID of the
spanner/spanner_snippets/spanner/spanner_create_instance_with_autoscaling_config.go:31
Function
createInstanceWithProcessingUnits
(w io.Writer, projectID, instanceID string)
spanner/spanner_snippets/spanner/spanner_create_instance_with_processing_units.go:28
Function
createInstanceWithoutDefaultBackupSchedule
createInstanceWithoutDefaultBackupSchedule creates instance with default backup schedule disabled.
spanner/spanner_snippets/spanner/spanner_create_instance_without_default_backup_schedule.go:28
Function
createInvalidChainedQuery
(client *firestore.Client)
firestore/query.go:111
Function
createInvalidRangeQuery
(client *firestore.Client)
firestore/query.go:132
Function
createInvalidRangeWithOrderByQuery
(client *firestore.Client)
firestore/query.go:195
Function
createKmsEncryptedDisk
createKmsEncryptedDisk creates a new disk in a project in given zone. If you do not provide diskLink or imageLink, an empty disk will be created.
compute/disks/create_kms_encrypted_disk.go:30
Function
createModelArmorTemplateWithBasicSDP
createModelArmorTemplateWithBasicSDP method creates a new Model Armor template with basic SDP settings. w io.Writer: The writer to use for logging. p
modelarmor/create_template_with_basic_sdp.go:37
Function
createMultipleOrderByQuery
(client *firestore.Client)
firestore/query.go:170
Function
createMultipleStartAtQuery
(client *firestore.Client)
firestore/query.go:245
Function
createOrderByNameDescLimitQuery
(client *firestore.Client)
firestore/query.go:161
Function
createOrderByNameLimitQuery
(client *firestore.Client)
firestore/query.go:143
Function
createOrderByNameLimitToLastQuery
(client *firestore.Client)
firestore/query.go:152
Function
createQuery
(client *firestore.Client)
firestore/query.go:73
Function
createQueryTwo
(client *firestore.Client)
firestore/query.go:80
Function
createRangeQuery
(client *firestore.Client)
firestore/query.go:121
Function
createRangeWithOrderByAndLimitQuery
(client *firestore.Client)
firestore/query.go:177
Function
createRangeWithOrderByQuery
(client *firestore.Client)
firestore/query.go:186
Function
createSequence
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_sequence.go:30
Function
createSimpleEndtAtQuery
(client *firestore.Client)
firestore/query.go:213
Function
createSimpleQueries
(client *firestore.Client)
firestore/query.go:87
Function
createSimpleStartAtQuery
(client *firestore.Client)
firestore/query.go:206
Function
createSubcollectionReference
(client *firestore.Client)
firestore/retrieve_data_reference_subcollection.go:23
Function
createTableDocumentsWithHistoryTable
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_documents_with_history_table.go:26
Function
createTableDocumentsWithTimestamp
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_documents_with_timestamp.go:26
Function
createTableWithDatatypes
Creates a Cloud Spanner table comprised of columns for each supported data type See https://cloud.google.com/spanner/docs/data-types
spanner/spanner_snippets/spanner/spanner_create_table_with_datatypes.go:30
Function
createTableWithForeignKeyDeleteCascade
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_with_foreign_key_delete_cascade.go:28
Function
createTableWithTimestamp
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_table_with_timestamp_column.go:28
Function
createTuningJob
createTuningJob creates a supervised tuning job using training and validation datasets.
genai/tuning/tuning_create_job.go:29
Function
datasetIAMPolicy
datasetIAMPolicy gets the dataset's IAM policy.
healthcare/dataset_iam_get.go:27
Function
decapsulate
decapsulate decapsulates the given ciphertext using a saved private key of purpose KEY_ENCAPSULATION stored in KMS.
kms/decapsulate.go:31
Function
deleteBackup
(ctx context.Context, w io.Writer, db, backupID string)
spanner/spanner_snippets/spanner/spanner_delete_backup.go:29
Function
deleteBackupSchedule
(w io.Writer, dbName string, scheduleId string)
spanner/spanner_snippets/spanner/spanner_delete_backup_schedule.go:28
Function
deleteByFilter
Deletes ALL disk snapshots in the project that match the filter
compute/snapshots/delete_snapshots_by_filter.go:29
Function
deleteCryptoKey
deleteCryptoKey deletes a crypto key. This action is permanent and cannot be undone. Once the key is deleted, it will no longer exist.
kms/delete_key.go:28
Function
deleteCryptoKeyVersion
deleteCryptoKeyVersion deletes a crypto key version. This action is permanent and cannot be undone. Once the key version is deleted, it will no longer
kms/delete_key_version.go:28
Function
deleteGraphData
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_delete_graph_data.go:26
Function
deleteGraphDataWithDml
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_delete_graph_data.go:27
Function
deleteHandler
[END gae_search_retrieving_documents_by_doc_ids] [START gae_search_deleting_documents_from_an_index]
docs/appengine/search/search.go:97
Method
deleteHandler
deleteHandler deletes a given book.
getting-started/bookshelf/main.go:270
Function
deleteUsingDML
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_standard_delete.go:27
Function
deleteUsingDMLReturning
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_delete_returning.go:28
Function
deleteUsingPartitionedDML
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_dml_partitioned_delete.go:27
Function
demoHandler
Handler for the incoming requests.
docs/error-reporting/fluent/main.go:75
Method
detailHandler
detailHandler displays the details of a given book.
getting-started/bookshelf/main.go:138
Function
detectCropHints
[END vision_image_property_detection] [START vision_crop_hint_detection] detectCropHints gets suggested croppings the Vision API for an image at the g
vision/detect/detect.go:303
Function
detectCropHintsURI
[END vision_image_property_detection_gcs] [START vision_crop_hint_detection_gcs] detectCropHints gets suggested croppings the Vision API for an image
vision/detect/detect.go:800
Function
detectDocumentText
[END vision_text_detection] [START vision_fulltext_detection] detectDocumentText gets the full document text from the Vision API for an image at the g
vision/detect/detect.go:203
Function
detectDocumentTextURI
[END vision_text_detection_gcs] [START vision_fulltext_detection_gcs] detectDocumentText gets the full document text from the Vision API for an image
vision/detect/detect.go:718
Function
detectFaces
[START vision_face_detection] detectFaces gets faces from the Vision API for an image at the given file path.
vision/detect/detect.go:41
Function
detectFacesURI
[START vision_face_detection_gcs] detectFaces gets faces from the Vision API for an image at the given file path.
vision/detect/detect.go:593
Function
detectLabels
[END vision_face_detection] [START vision_label_detection] detectLabels gets labels from the Vision API for an image at the given file path.
vision/detect/detect.go:83
Function
detectLabelsURI
[END vision_face_detection_gcs] [START vision_label_detection_gcs] detectLabels gets labels from the Vision API for an image at the given file path.
vision/detect/detect.go:625
Function
detectLandmarks
[END vision_label_detection] [START vision_landmark_detection] detectLandmarks gets landmarks from the Vision API for an image at the given file path.
vision/detect/detect.go:123
Function
detectLandmarksURI
[END vision_label_detection_gcs] [START vision_landmark_detection_gcs] detectLandmarks gets landmarks from the Vision API for an image at the given fi
vision/detect/detect.go:656
Function
detectLanguage
[END translate_translate_text] [START translate_detect_language]
translate/snippets/snippet.go:74
Function
detectLogos
[END vision_web_detection_include_geo] [START vision_logo_detection] detectLogos gets logos from the Vision API for an image at the given file path.
vision/detect/detect.go:481
Function
detectLogosURI
[END vision_web_detection_include_geo_gcs] [START vision_logo_detection_gcs] detectLogos gets logos from the Vision API for an image at the given file
vision/detect/detect.go:942
Function
detectProperties
[END vision_fulltext_detection] [START vision_image_property_detection] detectProperties gets image properties from the Vision API for an image at the
vision/detect/detect.go:263
Function
detectPropertiesURI
[END vision_fulltext_detection_gcs] [START vision_image_property_detection_gcs] detectProperties gets image properties from the Vision API for an imag
vision/detect/detect.go:769
Function
detectSafeSearch
[END vision_crop_hint_detection] [START vision_safe_search_detection] detectSafeSearch gets image properties from the Vision API for an image at the g
vision/detect/detect.go:341
Function
detectSafeSearchURI
[END vision_crop_hint_detection_gcs] [START vision_safe_search_detection_gcs] detectSafeSearch gets image properties from the Vision API for an image
vision/detect/detect.go:829
Function
detectText
[END vision_landmark_detection] [START vision_text_detection] detectText gets text from the Vision API for an image at the given file path.
vision/detect/detect.go:163
Function
detectTextURI
[END vision_landmark_detection_gcs] [START vision_text_detection_gcs] detectText gets text from the Vision API for an image at the given file path.
vision/detect/detect.go:687
Function
detectWeb
[END vision_safe_search_detection] [START vision_web_detection] detectWeb gets image properties from the Vision API for an image at the given file pat
vision/detect/detect.go:379
Function
detectWebGeo
[END vision_web_detection] [START vision_web_detection_include_geo] detectWebGeo detects geographic metadata from the Vision API for an image at the g
vision/detect/detect.go:437
Function
detectWebGeoURI
[END vision_web_detection_gcs] [START vision_web_detection_include_geo_gcs] detectWebGeo detects geographic metadata from the Vision API for an image
vision/detect/detect.go:907
Function
detectWebURI
[END vision_safe_search_detection_gcs] [START vision_web_detection_gcs] detectWeb gets image properties from the Vision API for an image at the given
vision/detect/detect.go:858
Function
directedReadOptions
Shows how to run a query with directed read options. Only one of ExcludeReplicas or IncludeReplicas can be set Each accepts a list of ReplicaSelect
spanner/spanner_snippets/spanner/spanner_directed_read_options.go:48
← previous
next →
4,301–4,400 of 5,023, ranked by callers