{"id":13495501,"url":"https://github.com/qpliu/qrencode-go","last_synced_at":"2026-01-10T19:52:13.145Z","repository":{"id":4046757,"uuid":"5148831","full_name":"qpliu/qrencode-go","owner":"qpliu","description":"QR encoder in Go","archived":false,"fork":false,"pushed_at":"2020-06-19T07:37:16.000Z","size":18,"stargazers_count":116,"open_issues_count":4,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-31T10:36:45.450Z","etag":null,"topics":["go","qr-code","qr-generator"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qpliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-23T07:38:15.000Z","updated_at":"2024-10-28T08:05:54.000Z","dependencies_parsed_at":"2022-09-02T04:30:26.666Z","dependency_job_id":null,"html_url":"https://github.com/qpliu/qrencode-go","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/qpliu%2Fqrencode-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fqrencode-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fqrencode-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qpliu%2Fqrencode-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qpliu","download_url":"https://codeload.github.com/qpliu/qrencode-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246063041,"owners_count":20717729,"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","qr-code","qr-generator"],"created_at":"2024-07-31T19:01:35.356Z","updated_at":"2026-01-10T19:52:13.099Z","avatar_url":"https://github.com/qpliu.png","language":"Go","readme":"QR encoder in Go based on the ZXing encoder (http://code.google.com/p/zxing/).\n\n[![GoDoc](https://godoc.org/github.com/qpliu/qrencode-go/qrencode?status.svg)](https://godoc.org/github.com/qpliu/qrencode-go/qrencode)\n[![Build Status](https://travis-ci.org/qpliu/qrencode-go.svg?branch=master)](https://travis-ci.org/qpliu/qrencode-go)\n\nI was surprised that I couldn't find a QR encoder in Go, especially\nsince the example at http://golang.org/doc/effective_go.html#web_server\nis a QR code generator, though the QR encoding is done by an external\nGoogle service in the example.\n\n# Example\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"image/png\"\n\t\"os\"\n\n\t\"github.com/qpliu/qrencode-go/qrencode\"\n)\n\nfunc main() {\n\tvar buf bytes.Buffer\n\tfor i, arg := range os.Args {\n\t\tif i \u003e 1 {\n\t\t\tif err := buf.WriteByte(' '); err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t}\n\t\tif i \u003e 0 {\n\t\t\tif _, err := buf.WriteString(arg); err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t}\n\t}\n\tgrid, err := qrencode.Encode(buf.String(), qrencode.ECLevelQ)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tpng.Encode(os.Stdout, grid.Image(8))\n}\n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqpliu%2Fqrencode-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqpliu%2Fqrencode-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqpliu%2Fqrencode-go/lists"}