{"id":20148260,"url":"https://github.com/chainguard-dev/hello-world-golang","last_synced_at":"2025-10-30T11:10:07.766Z","repository":{"id":224726336,"uuid":"764023937","full_name":"chainguard-dev/hello-world-golang","owner":"chainguard-dev","description":"Simple go application that prints 'hello world' in a loop when built and invoked.","archived":false,"fork":false,"pushed_at":"2024-02-27T12:08:09.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T12:44:35.066Z","etag":null,"topics":["no-ghaudit-branch-protections"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainguard-dev.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}},"created_at":"2024-02-27T10:47:03.000Z","updated_at":"2024-03-22T21:59:32.000Z","dependencies_parsed_at":"2024-02-27T12:53:27.915Z","dependency_job_id":"fe7ffbd6-b55f-4ea5-946b-dc621776df95","html_url":"https://github.com/chainguard-dev/hello-world-golang","commit_stats":null,"previous_names":["mamccorm/hello-world-golang"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fhello-world-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fhello-world-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fhello-world-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fhello-world-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainguard-dev","download_url":"https://codeload.github.com/chainguard-dev/hello-world-golang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587798,"owners_count":19986628,"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":["no-ghaudit-branch-protections"],"created_at":"2024-11-13T22:36:23.649Z","updated_at":"2025-10-30T11:10:02.715Z","avatar_url":"https://github.com/chainguard-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello World GoLang\n\nThis repository contains a simple Go application that prints \"hello world\",\nalong with a randomly generated word continuously every 5 seconds. It serves as\na basic demonstration of Go's capabilities, including concurrency, external\nlibraries, and logging.\n\nAdditionally, this application incorporates a basic cryptographic operation by\nleveraging Go's standard crypto/sha256 library to generate a SHA-256 hash of the\nrandomly generated word in each iteration. Please note that while this\ndemonstrates cryptographic hashing, Go's standard cryptographic libraries are\nnot FIPS 140-2 validated.\n\n# Why was this created?\n\nThis was created as a example we can use to turn into a melange package, and\nlater produce a container image using apko.\n\n## Prerequisites\n\nBefore you begin, ensure you have Go installed on your system (version 1.15 or\nlater recommended).\n\n## Cloning the repository\n\nClone the repository to your local machine to get started with this project:\n\n```bash\ngit clone https://github.com/chainguard-dev/hello-world-golang.git\ncd hello-world-golang\n```\n\n## Building the application\n\no compile the program into a binary, run the following command in the project\ndirectory:\n\n```bash\ngo build -o hello-world-golang\n```\n\nThis command compiles the source code into a binary named hello-world-golang.\n\n## Running the application\n\nAfter building the application, you can run it directly from the command line:\n\n```bash\n./hello-world-golang\n```\n\nExample output:\n\n```bash\n% ./hello-world-golang\nINFO[0000] hello world - iteration 1 at 2024-02-27 11:17:13 - random word: Beetleberyl - hash: 5dc4927eacf941b994d5b98eb5451887394e8f2ce2050e05eaa2481faf81661c\nINFO[0005] hello world - iteration 2 at 2024-02-27 11:17:18 - random word: Catchertrail - hash: ed35b39871fa62b9f91e9dd11618ff851917a336c771b9157ec108836017202a\nINFO[0010] hello world - iteration 3 at 2024-02-27 11:17:23 - random word: Biterbrindle - hash: 0f98eb5e6b046363c42d5bd36a8e6d99dd1e0d08a1d7ea629541ae7de9987cfd\nINFO[0015] hello world - iteration 4 at 2024-02-27 11:17:28 - random word: Thumbhail - hash: 5cb5b9dd0327e1eee59305c343459f1cf9cb3dc116ccd0743771a64650690e90\nINFO[0020] hello world - iteration 5 at 2024-02-27 11:17:33 - random word: Kittenvivid - hash: 55d50efe20193f12f2e1eb26ba2069fd4422a294364d74489537c8e72ed25234\nINFO[0025] hello world - iteration 6 at 2024-02-27 11:17:38 - random word: Duckpeppermint - hash: 19299196b763ffce9afd13280c268aab0a9eae237a2e3c06bac625a21f824f47\nINFO[0030] hello world - iteration 7 at 2024-02-27 11:17:43 - random word: Footwool - hash: a3a3fd79f76761091199925cbc19d548fb238897a9eca2f3e9d66d743e658110\n```\n\nTo validate the version of the application:\n\n```bash\n% ./hello-world-golang --version\nHello World GoLang Version: 1.2\n```\n\n## Updating dependencies\n\nTo update a specific dependency to a new version, you can use the go get command\nfollowed by the dependency path and the desired version. For example, to update\ngithub.com/sirupsen/logrus to version v1.9.0, you would run:\n\n```bash\ngo get github.com/sirupsen/logrus@v1.9.0\n```\n\nWhich will update the pinned version in go.mod.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fhello-world-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainguard-dev%2Fhello-world-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fhello-world-golang/lists"}