{"id":19228936,"url":"https://github.com/heppu/go-demo","last_synced_at":"2026-06-18T13:32:22.378Z","repository":{"id":57611727,"uuid":"123272809","full_name":"heppu/go-demo","owner":"heppu","description":"Simple Go with kubernetes example","archived":false,"fork":false,"pushed_at":"2018-02-28T11:15:49.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T10:43:01.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/heppu.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}},"created_at":"2018-02-28T11:01:32.000Z","updated_at":"2020-02-15T06:51:42.000Z","dependencies_parsed_at":"2022-09-03T08:31:03.357Z","dependency_job_id":null,"html_url":"https://github.com/heppu/go-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heppu/go-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fgo-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fgo-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fgo-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fgo-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heppu","download_url":"https://codeload.github.com/heppu/go-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heppu%2Fgo-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34493360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T15:31:08.184Z","updated_at":"2026-06-18T13:32:22.342Z","avatar_url":"https://github.com/heppu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Go with kubernetes example\n\nThis repo shows a simple walk through how to build and deploy service with http interface to kubernetes. Starting with the hello world example in the first commit and ending up with small REST API with benchmarks and test cases with data race detection.\n\n## Requirements\n\n- [Minikube](https://kubernetes.io/docs/getting-started-guides/minikube/) running\n- [Docker client configured to use minikube](https://kubernetes.io/docs/getting-started-guides/minikube/#reusing-the-docker-daemon)\n- Go and make installed\n\n## Workflow\n\n### Building\n\nEdit your code and run\n```sh\nmake docker-build\n```\nThis will run docker build command and bump version if build was successful.\nIf you check the Dockerfile you can se that we are using [multi-stage build](https://docs.docker.com/develop/develop-images/multistage-build/).\n\nIn first stage we use `golang:1.10` to test and build the binary and then copy that to actual image which is build from `scratch`.\n\n### Deploying\n\nRun\n```sh\nmake kube-deploy\n```\n\nThis command will call `kubectl apply` with our `deployment.yaml` file and replace the version in deployment.yaml to match one in `VERSION`\n\nAfter the first deployment it is required to expose our app by running\n```sh\nmake kube-expose\n```\n\nNow the app should be accessible and minikube should give the url for it\n```sh\nminikube service demo-app --url\n```\n\n### Testing and benchmarking\n\nTo run all tests locally with race detection and code coverage run\n```sh\nmake benchmark\n```\n\nTo run all bencmarks run\n```sh\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheppu%2Fgo-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheppu%2Fgo-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheppu%2Fgo-demo/lists"}