diff --git a/appengine/go11x/cloudsql/cloudsql.go b/appengine/go11x/cloudsql/cloudsql.go index c88c0007b1..bf29cb8dfc 100644 --- a/appengine/go11x/cloudsql/cloudsql.go +++ b/appengine/go11x/cloudsql/cloudsql.go @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gae_cloudsql] - // Sample cloudsql demonstrates connection to a Cloud SQL instance from App Engine standard. package main @@ -119,5 +117,3 @@ func mustGetenv(k string) string { } return v } - -// [END gae_cloudsql] diff --git a/appengine/go11x/helloworld/helloworld.go b/appengine/go11x/helloworld/helloworld.go index 810fab1e11..673a218c98 100644 --- a/appengine/go11x/helloworld/helloworld.go +++ b/appengine/go11x/helloworld/helloworld.go @@ -12,12 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START gae_go111_app] - // Sample helloworld is an App Engine app. package main -// [START gae_go111_import] import ( "fmt" "log" @@ -25,16 +22,9 @@ import ( "os" ) -// [END gae_go111_import] - -// [START gae_go111_main_func] -// [START main_func] - func main() { http.HandleFunc("/", indexHandler) - // [START gae_go111_setting_port] - // [START setting_port] port := os.Getenv("PORT") if port == "" { port = "8080" @@ -45,16 +35,8 @@ func main() { if err := http.ListenAndServe(":"+port, nil); err != nil { log.Fatal(err) } - // [END setting_port] - // [END gae_go111_setting_port] } -// [END main_func] -// [END gae_go111_main_func] - -// [START gae_go111_indexHandler] -// [START indexHandler] - // indexHandler responds to requests with our greeting. func indexHandler(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { @@ -63,7 +45,3 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { } fmt.Fprint(w, "Hello, World!") } - -// [END indexHandler] -// [END gae_go111_indexHandler] -// [END gae_go111_app] diff --git a/bigtable/writes/write_aggregate.go b/bigtable/writes/write_aggregate.go index d6bfc69bec..9453461900 100644 --- a/bigtable/writes/write_aggregate.go +++ b/bigtable/writes/write_aggregate.go @@ -15,7 +15,6 @@ // Package writes contains snippets related to writing to Cloud Bigtable. package writes -// [START bigtable_writes_aggregate] import ( "context" "fmt" @@ -55,5 +54,3 @@ func writeAggregate(w io.Writer, projectID, instanceID string, tableName string) fmt.Fprintf(w, "Successfully wrote row: %s\n", rowKey) return nil } - -// [END bigtable_writes_aggregate] diff --git a/jobs/v3/howto/basic_job_sample.go b/jobs/v3/howto/basic_job_sample.go index c1fd71a88b..db989f9643 100644 --- a/jobs/v3/howto/basic_job_sample.go +++ b/jobs/v3/howto/basic_job_sample.go @@ -24,8 +24,6 @@ import ( talent "google.golang.org/api/jobs/v3" ) -// [START job_create_job] - // createJob create a job as given. func createJob(w io.Writer, projectID string, jobToCreate *talent.Job) (*talent.Job, error) { ctx := context.Background() @@ -51,10 +49,6 @@ func createJob(w io.Writer, projectID string, jobToCreate *talent.Job) (*talent. return job, err } -// [END job_create_job] - -// [START job_get_job] - // getJob gets a job by name. func getJob(w io.Writer, jobName string) (*talent.Job, error) { ctx := context.Background() @@ -79,10 +73,6 @@ func getJob(w io.Writer, jobName string) (*talent.Job, error) { return job, err } -// [END job_get_job] - -// [START job_update_job] - // updateJob update a job with all fields except name. func updateJob(w io.Writer, jobName string, jobToUpdate *talent.Job) (*talent.Job, error) { ctx := context.Background() @@ -108,10 +98,6 @@ func updateJob(w io.Writer, jobName string, jobToUpdate *talent.Job) (*talent.Jo return job, err } -// [END job_update_job] - -// [START job_update_job_with_field_mask] - // updateJobWithMask updates a job by name with specific fields. // mask is a comma separated list top-level fields of talent.Job. func updateJobWithMask(w io.Writer, jobName string, mask string, jobToUpdate *talent.Job) (*talent.Job, error) { @@ -139,10 +125,6 @@ func updateJobWithMask(w io.Writer, jobName string, mask string, jobToUpdate *ta return job, err } -// [END job_update_job_with_field_mask] - -// [START job_delete_job] - // deleteJob deletes an existing job by name. func deleteJob(w io.Writer, jobName string) error { ctx := context.Background() @@ -164,10 +146,6 @@ func deleteJob(w io.Writer, jobName string) error { return err } -// [END job_delete_job] - -// [START job_list_jobs] - // listJobs lists jobs with a filter, for example // `companyName="projects/my-project/companies/123"`. func listJobs(w io.Writer, projectID, filter string) (*talent.ListJobsResponse, error) { @@ -196,5 +174,3 @@ func listJobs(w io.Writer, projectID, filter string) (*talent.ListJobsResponse, return resp, err } - -// [END job_list_jobs] diff --git a/kms/check_state_import_job.go b/kms/check_state_import_job.go index cf2da17a64..408b19bad9 100644 --- a/kms/check_state_import_job.go +++ b/kms/check_state_import_job.go @@ -14,7 +14,6 @@ package kms -// [START kms_check_state_import_job] import ( "context" "fmt" @@ -46,5 +45,3 @@ func checkStateImportJob(w io.Writer, name string) error { fmt.Fprintf(w, "Current state of import job %q: %s\n", result.Name, result.State) return nil } - -// [END kms_check_state_import_job] diff --git a/vision/detect/detect.go b/vision/detect/detect.go index fc766ff788..9422a5e375 100644 --- a/vision/detect/detect.go +++ b/vision/detect/detect.go @@ -32,8 +32,6 @@ func init() { _ = os.Open } -// [START vision_face_detection] - // detectFaces gets faces from the Vision API for an image at the given file path. func detectFaces(w io.Writer, file string) error { ctx := context.Background() @@ -72,8 +70,6 @@ func detectFaces(w io.Writer, file string) error { return nil } -// [END vision_face_detection] - // [START vision_label_detection] // detectLabels gets labels from the Vision API for an image at the given file path.