{"id":19666592,"url":"https://github.com/xaionaro-go/tinyhelloworld","last_synced_at":"2025-07-21T05:03:23.404Z","repository":{"id":71636451,"uuid":"238991694","full_name":"xaionaro-go/tinyhelloworld","owner":"xaionaro-go","description":"A very synthetic, but very small hello world in Go. **It takes 91 bytes when compiled (as a static binary).**","archived":false,"fork":false,"pushed_at":"2025-03-22T13:44:02.000Z","size":14,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T22:42:40.938Z","etag":null,"topics":["example","go","golang","hello","hello-world","helloworld","minimal","size","size-optimization","small","static","tiny","tinygo","world"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xaionaro-go.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":"2020-02-07T17:58:33.000Z","updated_at":"2025-04-20T05:16:06.000Z","dependencies_parsed_at":"2025-04-28T22:42:48.836Z","dependency_job_id":"ba9e6f49-30d7-4660-b68f-f5d2f3b63037","html_url":"https://github.com/xaionaro-go/tinyhelloworld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xaionaro-go/tinyhelloworld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2Ftinyhelloworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2Ftinyhelloworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2Ftinyhelloworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2Ftinyhelloworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xaionaro-go","download_url":"https://codeload.github.com/xaionaro-go/tinyhelloworld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2Ftinyhelloworld/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266242054,"owners_count":23898101,"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","go","golang","hello","hello-world","helloworld","minimal","size","size-optimization","small","static","tiny","tinygo","world"],"created_at":"2024-11-11T16:28:12.176Z","updated_at":"2025-07-21T05:03:23.382Z","avatar_url":"https://github.com/xaionaro-go.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp xmlns:dct=\"http://purl.org/dc/terms/\" xmlns:vcard=\"http://www.w3.org/2001/vcard-rdf/3.0#\"\u003e\n  \u003ca rel=\"license\"\n     href=\"http://creativecommons.org/publicdomain/zero/1.0/\"\u003e\n    \u003cimg src=\"http://i.creativecommons.org/p/zero/1.0/88x31.png\" style=\"border-style: none;\" alt=\"CC0\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  To the extent possible under law,\n  \u003ca rel=\"dct:publisher\"\n     href=\"https://github.com/xaionaro/\"\u003e\n    \u003cspan property=\"dct:title\"\u003eDmitrii Okunev\u003c/span\u003e\u003c/a\u003e\n  has waived all copyright and related or neighboring rights to\n  \"\u003cspan property=\"dct:title\"\u003eA very synthetic, but very small hello world on Go\u003c/span\u003e.\nThis work is published from:\n\u003cspan property=\"vcard:Country\" datatype=\"dct:ISO3166\"\n      content=\"IE\" about=\"https://github.com/xaionaro-go/tinyhelloworld\"\u003e\n  Ireland\u003c/span\u003e\".\n\u003c/p\u003e\n\n# Quick start\n\n```sh\n$ rm -f tinyhelloworld\n$ docker build -t build-go-tinyhelloworld . \u0026\u0026 docker run -v \"$(pwd):/project\" build-go-tinyhelloworld\n$ stat -c %s ./tinyhelloworld\n91\n$ ./tinyhelloworld\nHello, world!\n```\n\nOR\n\n```sh\n$ rm -f tinyhelloworld\n$ make all\n$ stat -c %s ./tinyhelloworld\n91\n$ ./tinyhelloworld\nHello, world!\n```\n\n# Hexdump\n``````\n$ hexdump -C tinyhelloworld \n00000000  7f 45 4c 46 01 00 00 00  00 00 00 00 00 00 00 01  |.ELF............|\n00000010  02 00 03 00 00 00 00 01  2e 00 00 01 04 00 00 00  |................|\n00000020  00 00 00 00 00 00 00 00  00 00 20 00 01 00 e8 07  |.......... .....|\n00000030  00 00 00 31 c0 31 db 40  cd 80 53 6a 04 58 31 db  |...1.1.@..Sj.X1.|\n00000040  43 6a 0e 5a b9 4d 00 00  01 cd 80 5b c3 48 65 6c  |Cj.Z.M.....[.Hel|\n00000050  6c 6f 2c 20 77 6f 72 6c  64 21 0a                 |lo, world!.|\n0000005b\n``````\n\n# Comments\n\n`elf.asm` is just ELF-headers and a wrapper to call the `main()`.\n\nThe binary could be even less if we place our useful data right into the ELF headers\n(see [an example](http://www.muppetlabs.com/~breadbox/software/tiny/hello.asm.txt)).\n\n# See also\n\n* [Using Rust to make a 137-byte static AMD64 Linux binary](https://github.com/tormol/tiny-rust-executable).\n* [A \"hello, world\" in a 62-byte ELF using NASM](http://www.muppetlabs.com/~breadbox/software/tiny/hello.asm.txt).\n\n# Why is Go binary so big\n\nA collection of articles explains some details about Go:\n* [Go language goroutine scheduler initialization](https://cloud.tencent.com/developer/article/1450278)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaionaro-go%2Ftinyhelloworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxaionaro-go%2Ftinyhelloworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaionaro-go%2Ftinyhelloworld/lists"}