Google Cloud Platform Go Samples

repository·main·Indexed 26 days ago

https://github.com/googlecloudplatform/golang-samples

A collection of Go sample implementations for various Google Cloud Platform services, including Cloud Bigtable, Cloud SQL (MySQL), App Engine Flexible, and Pub/Sub. These samples serve as educational references and building blocks for developers, providing guidance on local setup, API configuration, and deployment to environments like Cloud Run and App Engine Standard.

Tokens
133.3K
Snippets
351
Records
533
Agent score
89%

What's inside googlecloudplatform-golang-samples

  1. Overview of the Markdown Preview sample application

    main

    The Markdown Preview sample is a multi-service application composed of two distinct services:

    1. markdown editor: The service responsible for editing markdown content.
    2. markdown renderer: The service responsible for rendering the markdown.

    This sample is designed to demonstrate how to work with multiple services in a secure environment.

  2. Use Google Cloud Platform Go samples

    main

    This repository contains Go sample code demonstrating various Google Cloud Platform services. To use these samples in your own application, copy the required code directly into your project.

    Warning: Do not depend directly on the samples in this repository as breaking changes may be made at any time without warning.

  3. Handle Cloud Spanner arrays in Go

    main

    When working with Cloud Spanner arrays in Go, you must use spanner.NullString to receive string fields that are returned as part of an array, even if the underlying string fields in the database are not nullable.

    However, when populating (writing) these array elements, you have flexibility: you can use either spanner.NullString or a plain string type.