{"id":15067794,"url":"https://github.com/zing-dev/hello-go","last_synced_at":"2026-02-04T05:33:51.388Z","repository":{"id":40295249,"uuid":"105344460","full_name":"zing-dev/hello-go","owner":"zing-dev","description":"hello-go","archived":false,"fork":false,"pushed_at":"2024-10-21T08:48:14.000Z","size":25316,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:04:32.950Z","etag":null,"topics":["go","golang","golang-examples","golang-library","learn-go"],"latest_commit_sha":null,"homepage":"https://github.com/zhangrxiang/hello-go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zing-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-09-30T05:33:10.000Z","updated_at":"2024-10-21T08:48:18.000Z","dependencies_parsed_at":"2024-10-22T10:11:08.316Z","dependency_job_id":null,"html_url":"https://github.com/zing-dev/hello-go","commit_stats":{"total_commits":419,"total_committers":2,"mean_commits":209.5,"dds":"0.011933174224343701","last_synced_commit":"aa55e111171a641d10c8a737eecf96f7200ac1a4"},"previous_names":["zhangrxiang/hello-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fhello-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fhello-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fhello-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fhello-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zing-dev","download_url":"https://codeload.github.com/zing-dev/hello-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248251480,"owners_count":21072689,"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":["go","golang","golang-examples","golang-library","learn-go"],"created_at":"2024-09-25T01:27:24.933Z","updated_at":"2026-02-04T05:33:51.342Z","avatar_url":"https://github.com/zing-dev.png","language":"Go","readme":"# learn-go\n\n\u003e This is an open source project to learn golang\n\n```go\n\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"sync\"\n\t\"time\"\n)\n\nfunc HelloWorld() {\n\ttime.Sleep(time.Second)\n\tlog.Println(\"Hello, World!\")\n}\n\nfunc HelloWorld2() {\n\tc := make(chan struct{})\n\tgo func() {\n\t\ttime.Sleep(time.Second)\n\t\tlog.Println(\"Hello, World chan!\")\n\t\tc \u003c- struct{}{}\n\t}()\n\t\u003c-c\n}\n\nfunc HelloWorld3() {\n\tvar g sync.WaitGroup\n\tg.Add(1)\n\tgo func(){\n\t\ttime.Sleep(time.Second)\n\t\tlog.Println(\"Hello, World WaitGroup!\")\n\t\tg.Done()\n\t}()\n\tg.Wait()\n}\n\nfunc HelloWorld4() {\n\tcond := sync.NewCond(new(sync.Mutex))\n\tgo func() {\n\t\ttime.Sleep(time.Second)\n\t\tlog.Println(\"Hello, World Cond!\")\n\t\tcond.Signal()\n\t}()\n\tcond.L.Lock()\n\tcond.Wait()\n\tcond.L.Unlock()\n}\n\nfunc HelloWorld5() {\n\tctx, cancel := context.WithCancel(context.Background())\n\tgo cancel()\n\tselect {\n\tcase \u003c-ctx.Done():\n\t\ttime.Sleep(time.Second)\n\t\tlog.Println(\"Hello, World WithCancel!\")\n\t}\n}\n\nfunc main() {\n\tHelloWorld()\n\tHelloWorld2()\n\tHelloWorld3()\n\tHelloWorld4()\n\tHelloWorld5()\n}\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzing-dev%2Fhello-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzing-dev%2Fhello-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzing-dev%2Fhello-go/lists"}