{"id":17967845,"url":"https://github.com/simonprickett/google-cloud-functions-go","last_synced_at":"2025-04-03T21:29:39.116Z","repository":{"id":149219171,"uuid":"166492741","full_name":"simonprickett/google-cloud-functions-go","owner":"simonprickett","description":"Experiment with Google Cloud Functions for the Go language.","archived":false,"fork":false,"pushed_at":"2019-01-27T02:12:23.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T09:29:46.241Z","etag":null,"topics":["cloudfunctions","golang","google-cloud","randomuser-api","serverless"],"latest_commit_sha":null,"homepage":"https://simonprickett.dev/","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/simonprickett.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-01-19T01:18:23.000Z","updated_at":"2024-01-11T12:30:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f9cd3dd-9af1-4a26-a0a2-88e382c8f312","html_url":"https://github.com/simonprickett/google-cloud-functions-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/simonprickett%2Fgoogle-cloud-functions-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonprickett","download_url":"https://codeload.github.com/simonprickett/google-cloud-functions-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247082086,"owners_count":20880576,"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":["cloudfunctions","golang","google-cloud","randomuser-api","serverless"],"created_at":"2024-10-29T14:09:50.477Z","updated_at":"2025-04-03T21:29:39.098Z","avatar_url":"https://github.com/simonprickett.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Cloud Functions Go Runtime Demo\n\nDemo Google Cloud Function showing use of the Go runtime.  Read the Medium article that explains this [here](https://medium.com/@simon_prickett/writing-google-cloud-functions-in-go-fb711f33459a).\n\n## Deployment\n\n```\n$ gcloud components update\n$ gcloud components install beta\n$ gcloud beta functions deploy getUserDetails --runtime go111 --entry-point GetUserDetails --trigger-http --project \u003cprojectId\u003e\n```\n\nWhere `\u003cprojectId\u003e` is your Google Cloud project ID.\n\n## Testing\n\nPoint a browser at:\n\n```\nhttps://\u003cregion\u003e-\u003cprojectId\u003e.cloudfunctions.net/getUserDetails\n```\n\nWhere:\n\n* `\u003cregion\u003e` is the Google Cloud region that you deployed to (e.g. `us-central1`)\n* `\u003cprojectId\u003e` is your Google Cloud project ID\n\n(the full URL that you need will be displayed in the output of the `gcloud` command when deploying the function).\n\nYou should see JSON representing a random user object pulled from the API that looks something like:\n\n```\n{\n  \"cell\": \"0911-857-4769\", \n  \"dob\": {\n    \"age\": 64, \n    \"date\": \"1954-01-11T01:37:49Z\"\n  }, \n  \"email\": \"محمدامين.پارسا@example.com\", \n  \"gender\": \"male\", \n  \"generator\": \"google-cloud-function\", \n  \"id\": {\n    \"name\": \"\", \n    \"value\": null\n  }, \n  \"location\": {\n    \"city\": \"ایلام\", \n    \"coordinates\": {\n      \"latitude\": \"32.1895\", \n      \"longitude\": \"-138.2377\"\n    }, \n    \"postcode\": 41995, \n    \"state\": \"کرمانشاه\", \n    \"street\": \"206 دکتر مفتح\", \n    \"timezone\": {\n      \"description\": \"Ekaterinburg, Islamabad, Karachi, Tashkent\", \n      \"offset\": \"+5:00\"\n    }\n  }, \n  \"login\": {\n    \"md5\": \"c83471713279d94cb2a33a4b03a456cd\", \n    \"password\": \"lacrosse\", \n    \"salt\": \"B9vhBXeE\", \n    \"sha1\": \"09ff43c271437499467aab431df1bc522e1574a9\", \n    \"sha256\": \"f39c50bf339b6dd973e3dfdea0ddee451fc90cc5adb7580c8f386a2c9f2ff304\", \n    \"username\": \"orangeelephant750\", \n    \"uuid\": \"bcb042d5-7f52-47c1-b883-b296268bec07\"\n  }, \n  \"name\": {\n    \"first\": \"محمدامين\", \n    \"last\": \"پارسا\"\", \n    \"title\": \"mr\"\n  }, \n  \"nat\": \"IR\", \n  \"phone\": \"014-57870431\", \n  \"picture\": {\n    \"large\": \"https://randomuser.me/api/portraits/men/40.jpg\", \n    \"medium\": \"https://randomuser.me/api/portraits/med/men/40.jpg\", \n    \"thumbnail\": \"https://randomuser.me/api/portraits/thumb/men/40.jpg\"\n  }, \n  \"registered\": {\n    \"age\": 6, \n    \"date\": \"2011-10-26T06:05:55Z\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-go/lists"}