{"id":22772356,"url":"https://github.com/pactflow/example-consumer-golang","last_synced_at":"2025-04-30T03:44:41.031Z","repository":{"id":42430628,"uuid":"328655403","full_name":"pactflow/example-consumer-golang","owner":"pactflow","description":"Example consumer with Golang","archived":false,"fork":false,"pushed_at":"2025-04-21T01:28:22.000Z","size":10891,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-30T03:44:37.981Z","etag":null,"topics":["example"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/pactflow.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,"zenodo":null}},"created_at":"2021-01-11T12:21:46.000Z","updated_at":"2025-04-11T01:39:35.000Z","dependencies_parsed_at":"2025-01-27T22:24:01.570Z","dependency_job_id":"eab91267-d0c2-4451-b321-d85f67c8142c","html_url":"https://github.com/pactflow/example-consumer-golang","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/pactflow%2Fexample-consumer-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-consumer-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-consumer-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pactflow%2Fexample-consumer-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pactflow","download_url":"https://codeload.github.com/pactflow/example-consumer-golang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251638750,"owners_count":21619661,"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":["example"],"created_at":"2024-12-11T17:08:13.710Z","updated_at":"2025-04-30T03:44:41.011Z","avatar_url":"https://github.com/pactflow.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Consumer\n\n![Build](https://github.com/pactflow/example-consumer-golang/workflows/Build/badge.svg)\n\n![Can I Deploy](https://testdemo.pactflow.io/pacticipants/pactflow-example-consumer-golang/branches/master/latest-version/can-i-deploy/to-environment/production/badge)\n\nThis is an example of a Golang consumer using Pact to create a consumer driven contract, and sharing it via [PactFlow](https://pactflow.io).\n\nIt is using a public tenant on PactFlow, which you can access [here](https://test.pactflow.io) using the credentials `dXfltyFMgNOFZAxr8io9wJ37iUpY42M`/`O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1`. The latest version of the Example Consumer/Example Provider pact is published [here](https://test.pactflow.io/pacts/provider/pactflow-example-provider-golang/consumer/pactflow-example-consumer-golang/latest).\n\nThe project uses a Makefile to simulate a very simple build pipeline with two stages - test and deploy.\n\n* Test\n  * Run tests (including the pact tests that generate the contract)\n  * Publish pacts, tagging the consumer version with the name of the current branch\n  * Check if we are safe to deploy to prod (ie. has the pact content been successfully verified)\n* Deploy (only from master)\n  * Deploy app (just pretend for the purposes of this example!)\n  * Tag the deployed consumer version as 'prod'\n\n## Usage\n\nSee the [PactFlow CI/CD Workshop](https://github.com/pactflow/ci-cd-workshop) for background.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpactflow%2Fexample-consumer-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpactflow%2Fexample-consumer-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpactflow%2Fexample-consumer-golang/lists"}