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
↓ 1 callers
Function
prepareClusteredData
prepareClusteredData setups up example partitioned/clustered table resources for the query tests.
bigquery/snippets/querying/integration_test.go:210
↓ 1 callers
Function
preparePartitionedData
preparePartitionedData setups up example partitioned/clustered table resources for the query tests.
bigquery/snippets/querying/integration_test.go:180
↓ 1 callers
Function
prepareQuery
[END firestore_deps]
firestore/query.go:27
↓ 1 callers
Function
prepareRetrieve
(ctx context.Context, client *firestore.Client)
firestore/retrieve_data_get_dataset.go:25
↓ 1 callers
Function
printDatasetInfo
printDatasetInfo demonstrates fetching dataset metadata and printing some of it to an io.Writer.
bigquery/snippets/dataset/bigquery_get_dataset.go:28
↓ 1 callers
Function
printDatasetLabels
printDatasetLabels retrieves label metadata from a dataset and prints it to an io.Writer.
bigquery/snippets/dataset/bigquery_get_dataset_labels.go:27
↓ 1 callers
Function
printDatum
printDatum prints the decoded row datum.
bigquery/bigquery_storage_quickstart/main.go:188
↓ 1 callers
Function
printFileACL
printFileACL lists ACL of the specified object.
storage/acl/print_file_acl.go:27
↓ 1 callers
Function
printFileACLForUser
printFileACLForUser lists ACL of the specified object with filter.
storage/acl/print_file_acl_for_user.go:27
↓ 1 callers
Function
printImagesList
printImagesList prints a list of all non-deprecated image names available in given project.
compute/print_images_list.go:30
↓ 1 callers
Function
printImagesListByPage
printImagesListByPage prints a list of all non-deprecated image names available in a given project, divided into pages as returned by the Compute Engi
compute/print_images_list_by_page.go:31
↓ 1 callers
Function
printJobLogs
Retrieve the logs written by the given job to Cloud Logging
batch/read_job_logs.go:31
↓ 1 callers
Function
printModelInfo
printModelInfo demonstrates fetching metadata about a BigQuery ML model and printing some of it to an io.Writer.
bigquery/snippets/models/bigquery_get_model.go:28
↓ 1 callers
Function
printPreemtible
printPreemtible prints if a given instance is preemptible or not.
compute/instances/preemptible/print_preemtible.go:28
↓ 1 callers
Function
printPubsubBucketNotification
printPubsubBucketNotification gets a notification configuration for a bucket.
storage/notifications/get.go:27
↓ 1 callers
Function
printRecordBatch
printRecordBatch prints the arrow record batch
bigquery/bigquery_storage_quickstart/main.go:209
↓ 1 callers
Function
printRow
(w io.Writer, row bigtable.Row)
bigtable/filters/filters.go:185
↓ 1 callers
Function
printTableInfo
printTableInfo demonstrates fetching metadata from a table and printing some basic information to an io.Writer.
bigquery/snippets/table/bigquery_get_table.go:28
↓ 1 callers
Function
processArrow
processArrow receives row blocks from a channel, and uses the provided Arrow schema to decode the blocks into individual row messages for printing. W
bigquery/bigquery_storage_quickstart/main.go:333
↓ 1 callers
Function
processAvro
processAvro receives row blocks from a channel, and uses the provided Avro schema to decode the blocks into individual row messages for printing. Wil
bigquery/bigquery_storage_quickstart/main.go:375
↓ 1 callers
Function
processStream
processStream reads rows from a single storage Stream, and sends the Storage Response data blocks to a channel. This function will retry on transient
bigquery/bigquery_storage_quickstart/main.go:261
↓ 1 callers
Function
processTheMessage
[END functions_cloudevent_tips_infinite_retries] processTheMessage is a stand-in for the domain logic of your function.
functions/functionsv2/tips/infinite_retries/infinite_retries.go:69
↓ 1 callers
Function
processTheMessage
[END functions_tips_infinite_retries] processTheMessage is a stand-in for the domain logic of your function.
functions/tips/infinite_retries/infinite_retries.go:58
↓ 1 callers
Function
projectID
(t *testing.T)
securitycenter/notifications/notifications_test.go:40
↓ 1 callers
Function
promoteEphemeralAddress
promoteEphemeralAddress promotes an ephemeral IP address to a reserved static external IP address.
compute/address/promote_ephemeral_address.go:29
↓ 1 callers
Function
publish
(w io.Writer, projectID, topicID, msg string)
pubsub/topics/publish.go:26
↓ 1 callers
Function
publish
(w io.Writer, projectID, topicID, msg string)
pubsub/v1samples/topics/publish.go:26
↓ 1 callers
Function
publishCustomAttributes
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_custom.go:26
↓ 1 callers
Function
publishCustomAttributes
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_custom.go:26
↓ 1 callers
Function
publishMessages
(ctx context.Context, t *testing.T, topicPath string, messageCount int)
pubsublite/quickstart_subscriber/main_test.go:82
↓ 1 callers
Function
publishOpenTelemetryTracing
publishOpenTelemetryTracing publishes a single message with OpenTelemetry tracing enabled, exporting to Cloud Trace.
pubsub/topics/publish_otel_tracing.go:35
↓ 1 callers
Function
publishOpenTelemetryTracing
publishOpenTelemetryTracing publishes a single message with OpenTelemetry tracing enabled, exporting to Cloud Trace.
pubsub/v1samples/topics/publish_otel_tracing.go:35
↓ 1 callers
Function
publishProtoMessages
(w io.Writer, projectID, topicID string)
pubsub/v1samples/schemas/publish_proto_messages.go:29
↓ 1 callers
Function
publishProtoMessages
(w io.Writer, projectID, topicID string)
pubsub/schemas/publish_proto_messages.go:30
↓ 1 callers
Function
publishThatScales
(w io.Writer, projectID, topicID string, n int)
pubsub/topics/publish_scale.go:29
↓ 1 callers
Function
publishThatScales
(w io.Writer, projectID, topicID string, n int)
pubsub/v1samples/topics/publish_scale.go:29
↓ 1 callers
Function
publishWithBatchSettings
(w io.Writer, projectID, zone, topicID string, messageCount int)
pubsublite/publish/publish_batch.go:28
↓ 1 callers
Function
publishWithCompression
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_with_compression.go:26
↓ 1 callers
Function
publishWithCompression
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_with_compression.go:26
↓ 1 callers
Function
publishWithCustomAttributes
(w io.Writer, projectID, zone, topicID string)
pubsublite/publish/publish_custom_attributes.go:27
↓ 1 callers
Function
publishWithFlowControlSettings
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_flow_control.go:29
↓ 1 callers
Function
publishWithFlowControlSettings
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_flow_control.go:29
↓ 1 callers
Function
publishWithOrderingKey
(w io.Writer, projectID, zone, topicID string, messageCount int)
pubsublite/publish/publish_ordering_key.go:27
↓ 1 callers
Function
publishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_ordering.go:29
↓ 1 callers
Function
publishWithOrderingKey
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_ordering.go:29
↓ 1 callers
Function
publishWithRetrySettings
(w io.Writer, projectID, topicID, msg string)
pubsub/topics/publish_retry.go:30
↓ 1 callers
Function
publishWithRetrySettings
(w io.Writer, projectID, topicID, msg string)
pubsub/v1samples/topics/publish_retry.go:30
↓ 1 callers
Function
publishWithSettings
(w io.Writer, projectID, topicID string)
pubsub/topics/publish_settings.go:28
↓ 1 callers
Function
publishWithSettings
(w io.Writer, projectID, topicID string)
pubsub/v1samples/topics/publish_settings.go:28
↓ 1 callers
Function
pubsubSubscription
(t *testing.T)
securitycenter/notifications/notifications_test.go:56
↓ 1 callers
Function
pubsubSubscription
(t *testing.T)
securitycenter/notificationsv2/notifications_test.go:58
↓ 1 callers
Function
pullMsgs
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/async_pull.go:29
↓ 1 callers
Function
pullMsgs
(w io.Writer, projectID, subID string)
pubsub/subscriptions/async_pull.go:29
↓ 1 callers
Function
pullMsgsConcurrencyControl
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/pull_concurrency.go:28
↓ 1 callers
Function
pullMsgsConcurrencyControl
(w io.Writer, projectID, subID string)
pubsub/subscriptions/pull_concurrency.go:28
↓ 1 callers
Function
pullMsgsCustomAttributes
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/async_pull_custom_attributes.go:27
↓ 1 callers
Function
pullMsgsCustomAttributes
(w io.Writer, projectID, subID string)
pubsub/subscriptions/async_pull_custom_attributes.go:27
↓ 1 callers
Function
pullMsgsDeadLetterDeliveryAttempt
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/dead_letter_delivery_attempt.go:27
↓ 1 callers
Function
pullMsgsSync
(w io.Writer, projectID, subID string)
pubsub/v1samples/subscriptions/sync_pull.go:28
↓ 1 callers
Function
purgeFHIRResource
purgeFHIRResource purges an FHIR resources.
healthcare/fhir_resource_purge.go:27
↓ 1 callers
Function
purgeOrphanProducts
purgeOrphanProducts deletes all products not in any product sets.
vision/product_search/purge_orphan_products.go:29
↓ 1 callers
Function
purgeProductsInProductSet
purgeProductsInProductSet deletes all products in a product set.
vision/product_search/purge_products_in_product_set.go:29
↓ 1 callers
Function
queryBasic
queryBasic demonstrates issuing a query and reading results.
bigquery/snippets/querying/bigquery_query.go:28
↓ 1 callers
Function
queryBatch
queryBatch demonstrates issuing a query job using batch priority.
bigquery/snippets/querying/bigquery_query_batch.go:28
↓ 1 callers
Function
queryClusteredTable
queryClusteredTable demonstrates querying a table that has a clustering specification.
bigquery/snippets/querying/bigquery_query_clustered_table.go:28
↓ 1 callers
Function
queryDisableCache
queryDisableCache demonstrates issuing a query and requesting that the query cache is bypassed.
bigquery/snippets/querying/bigquery_query_no_cache.go:28
↓ 1 callers
Function
queryDryRun
queryDryRun demonstrates issuing a dry run query to validate query structure and provide an estimate of the bytes scanned.
bigquery/snippets/querying/bigquery_query_dry_run.go:28
↓ 1 callers
Function
queryExplain
(w io.Writer, projectID string)
firestore/query_explain.go:26
↓ 1 callers
Function
queryExplainAnalyze
(w io.Writer, projectID string)
firestore/query_explain_analyze.go:26
↓ 1 callers
Function
queryFilterOr
(w io.Writer, projectId string)
firestore/query_filter_or.go:27
↓ 1 callers
Function
queryIn
(w io.Writer, projectId string)
datastore/snippets/query_in.go:30
↓ 1 callers
Function
queryInformationSchemaDatabaseOptions
queryInformationSchemaDatabaseOptions queries the database options from the information schema table.
spanner/spanner_snippets/spanner/spanner_query_information_schema_database_options.go:30
↓ 1 callers
Function
queryJobOptional
queryJobOptional demonstrates issuing a query that doesn't require a corresponding job.
bigquery/snippets/querying/bigquery_query_job_optional.go:29
↓ 1 callers
Function
queryLegacy
queryLegacy demonstrates running a query using Legacy SQL.
bigquery/snippets/querying/bigquery_query_legacy.go:28
↓ 1 callers
Function
queryLegacyLargeResults
queryLegacyLargeResults demonstrates issuing a legacy SQL query and writing a large result set into a destination table.
bigquery/snippets/querying/bigquery_query_legacy_large_results.go:29
↓ 1 callers
Function
queryMultipleInequality
(w io.Writer, projectId string)
datastore/snippets/query_mieq.go:31
↓ 1 callers
Function
queryNotEquals
(w io.Writer, projectId string)
datastore/snippets/query_neq.go:30
↓ 1 callers
Function
queryNotIn
(w io.Writer, projectId string)
datastore/snippets/query_not_in.go:30
↓ 1 callers
Function
queryPartitionedTable
queryPartitionedTable demonstrates querying a time partitioned table and using a predicate that leverages the partitioned column.
bigquery/snippets/querying/bigquery_query_partitioned_table.go:29
↓ 1 callers
Function
queryTestablePermissions
queryTestablePermissions lists testable permissions on a resource.
iam/snippets/permissions_query_testable.go:27
↓ 1 callers
Function
queryVisits
(ctx context.Context, limit int64)
appengine_flexible/datastore/datastore.go:97
↓ 1 callers
Function
queryVisits
(ctx context.Context, limit int64)
appengine_flexible/go115_and_earlier/datastore/datastore.go:97
↓ 1 callers
Function
queryWithArrayParams
queryWithArrayParams demonstrates issuing a query and specifying query parameters that include an array of strings.
bigquery/snippets/querying/bigquery_query_params_arrays.go:29
↓ 1 callers
Function
queryWithDestination
queryWithDestination demonstrates saving the results of a query to a specific table by setting the destination via the API properties.
bigquery/snippets/querying/bigquery_query_destination_table.go:29
↓ 1 callers
Function
queryWithDestinationCMEK
queryWithDestinationCMEK demonstrates saving query results to a destination table and protecting those results by specifying a customer managed encryp
bigquery/snippets/querying/bigquery_query_destination_table_cmek.go:29
↓ 1 callers
Function
queryWithNamedParams
queryWithNamedParams demonstrate issuing a query using named query parameters.
bigquery/snippets/querying/bigquery_query_params_named.go:28
↓ 1 callers
Function
queryWithPositionalParams
queryWithPostionalParams demonstrate issuing a query using positional query parameters.
bigquery/snippets/querying/bigquery_query_params_positional.go:28
↓ 1 callers
Function
queryWithStructParam
queryWithStructParam demonstrates running a query and providing query parameters that include struct types.
bigquery/snippets/querying/bigquery_query_params_structs.go:29
↓ 1 callers
Function
queryWithTimespan
(ctx context.Context, w io.Writer, client *spanner.Client, timespan int)
spanner/spanner_leaderboard/leaderboard.go:241
↓ 1 callers
Function
queryWithTimestampParam
queryWithTimestampParam demonstrates issuing a query and supplying a timestamp query parameter.
bigquery/snippets/querying/bigquery_query_params_timestamps.go:29
↓ 1 callers
Function
quickstart
quickstart creates and runs a transfer job between two GCS buckets.
storagetransfer/quickstart.go:28
↓ 1 callers
Function
randomID
()
spanner/spanner_leaderboard/leaderboard_test.go:32
↓ 1 callers
Function
randomMonitoredResource
randomMonitoredResource returns the name of a random resource in the project.
monitoring/snippets/monitored_resource_get_test.go:49
↓ 1 callers
Function
randomSleep
randomSleep simulates a some job being triggerred in response to an API call to the server. This function records the time spent in sleeping in a hist
opentelemetry/instrumentation/app/work.go:64
↓ 1 callers
Function
readAppendableObjectTail
readAppendableObjectTail simulates a "tail -f" command on a GCS object. It repeatedly polls an appendable object for new content. In a real applicatio
storage/rapid/read_appendable_object_tail.go:33
↓ 1 callers
Function
readDataWithDatabaseRole
(w io.Writer, db string, databaseRole string)
spanner/spanner_snippets/spanner/spanner_read_data_with_database_role.go:28
↓ 1 callers
Function
readFiles
readFiles reads the content of files within the specified bucket with the specified prefix path in parallel and returns their content. It fails if ope
profiler/shakesapp/shakesapp/server.go:72
↓ 1 callers
Function
readHeartbeat
(instanceId string)
run/service-health/main.go:488
↓ 1 callers
Method
readService
readService reads the service out of the app.yaml file.
internal/aeintegrate/aeintegrate.go:267
↓ 1 callers
Function
readTimeSeriesAlign
readTimeSeriesAlign reads the last 20 minutes of the given metric and aligns everything on 10 minute intervals.
monitoring/snippets/time_series_align.go:34
← previous
next →
2,201–2,300 of 5,023, ranked by callers