This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 Google Inc. All rights reserved. | |
// Use of this source code is governed by the Apache 2.0 | |
// license that can be found in the LICENSE file. | |
// [START gae_go111_app] | |
// Sample helloworld is an App Engine app. | |
package main | |
// [START import] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package datastorekey | |
import ( | |
"testing" | |
"cloud.google.com/go/datastore" | |
) | |
func TestDocBug(t *testing.T) { | |
URLsafeKey := "ahRzfnByb2dyYW1taW5nLWlkaW9tc3IMCxIFSWRpb20YmgEM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2019 Google LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
package main | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/gif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2019 Google LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
package p | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/gif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package p | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"math/rand" | |
"net/http" | |
"sync" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package p | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"math/rand" | |
"net/http" | |
"sync" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GCP console | |
gcp | |
https://console.cloud.google.com | |
Cloud Storage | |
gcs | |
https://console.cloud.google.com/storage/browser | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2019 Google LLC | |
// SPDX-License-Identifier: Apache-2.0 | |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"sync" | |
"time" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Id": 1, | |
"OrigId": 0, | |
"Title": "Print Hello World", | |
"LeadParagraph": "Print a literal string on standard output", | |
"ExtraKeywords": "", | |
"Author": "programming-idioms.org", | |
"CreationDate": "2016-02-18T16:57:54.865234Z", | |
"LastEditor": "ara", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package semgroup | |
import ( | |
"context" | |
"golang.org/x/sync/errgroup" | |
) | |
// SemGroup is a thin wrapper for golang.org/x/sync/errgroup, with | |
// the extra capability of limiting the number of concurrent |