{"id":18638361,"url":"https://github.com/kitasuke/cloud-functions-in-go","last_synced_at":"2025-11-04T15:30:38.042Z","repository":{"id":95188068,"uuid":"189686934","full_name":"kitasuke/Cloud-Functions-in-Go","owner":"kitasuke","description":"Sample projects from this book https://booth.pm/en/items/1306074","archived":false,"fork":false,"pushed_at":"2019-06-01T06:30:42.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T09:25:55.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kitasuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-01T03:42:09.000Z","updated_at":"2021-02-16T18:34:46.000Z","dependencies_parsed_at":"2023-06-12T09:15:26.831Z","dependency_job_id":null,"html_url":"https://github.com/kitasuke/Cloud-Functions-in-Go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FCloud-Functions-in-Go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FCloud-Functions-in-Go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FCloud-Functions-in-Go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FCloud-Functions-in-Go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitasuke","download_url":"https://codeload.github.com/kitasuke/Cloud-Functions-in-Go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239435582,"owners_count":19638162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:40:58.598Z","updated_at":"2025-02-18T08:26:36.723Z","avatar_url":"https://github.com/kitasuke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud-Functions-in-Go\nsample projects\n\n# Cloud Functions\n\n## How to deploy Functions\n\n```\n$ gcloud functions deploy FUNC-NAME --runtime go111 --trigger-http\n```\n\n# Storage\n\n## How to create Storage bucket\n\n```\n$ gsutil mb -c nearline gs://BUCKET-NAME\n```\n\n## How to deploy Functions for the Storage\n\n```\n$ gcloud functions deploy FUNC-NAME --runtime go111 \\\n    --trigger-resource BUCKET-NAME \\\n    --trigger-event google.storage.object.finalize\n```\n\n## How to upload files to the Storage\n\n```\n$ touch empty.txt \u0026\u0026 gsutil cp empty.txt gs://BUCKET-NAME\n```\n\n## How to show logs\n\n```\n$ gcloud beta functions logs read --limit 50\n```\n\n# Pub/Sub\n\n## How to create Topic\n\n```\n$ gcloud pubsub topics create TOPIC-NAME\n```\n\n## How to deploy Functions for PubSub\n\n```\n$ gcloud functions deploy FUNC-NAME --runtime go111 --trigger-topic TOPIC-NAME\n```\n\n## How to publish topic to PubSub\n\n```\n$ gcloud pubsub topics publish TOPIC-NAME \\\n    --message '{\"name\": \"foo\"}'\n```\n\n## How to show logs\n\n```\n$ gcloud beta functions logs read --limit 50\n```\n\n# Storage\n\n## How to deploy with env file\n\n```\n$ gcloud functions deploy TriggerHTTPBucket --runtime go111 \\\n    --trigger-http --env-vars-file .env.yaml\n```\n\n# BigQuery\n\n## How to create table\n\n```\n$ bq mk TABLE-NAME\n```\n\n```\n$ bq mk --table TABLE-NAME.TABLE-NAMe TABLE-NAME.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitasuke%2Fcloud-functions-in-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitasuke%2Fcloud-functions-in-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitasuke%2Fcloud-functions-in-go/lists"}