{"id":16296850,"url":"https://github.com/windomz/qrw","last_synced_at":"2025-04-09T13:36:36.419Z","repository":{"id":62865499,"uuid":"126601359","full_name":"WindomZ/qrw","owner":"WindomZ","description":":high_brightness:  Output QR codes for Go","archived":false,"fork":false,"pushed_at":"2018-04-20T15:55:36.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:42:14.479Z","etag":null,"topics":["library","qr-code","qr-generator","qrcode-generator"],"latest_commit_sha":null,"homepage":"","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/WindomZ.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-03-24T13:21:22.000Z","updated_at":"2018-04-20T15:55:37.000Z","dependencies_parsed_at":"2022-11-08T06:31:53.928Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/qrw","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/WindomZ%2Fqrw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fqrw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fqrw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fqrw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/qrw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248050201,"owners_count":21039342,"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":["library","qr-code","qr-generator","qrcode-generator"],"created_at":"2024-10-10T20:24:11.489Z","updated_at":"2025-04-09T13:36:36.382Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QRCode Writer\n\n\u003e Output QR codes for Go\n\n[![Build Status](https://travis-ci.org/WindomZ/qrw.svg?branch=master)](https://travis-ci.org/WindomZ/qrw)\n[![Coverage Status](https://coveralls.io/repos/github/WindomZ/qrw/badge.svg?branch=master)](https://coveralls.io/github/WindomZ/qrw?branch=master)\n[![GoDoc](https://godoc.org/github.com/WindomZ/qrw?status.svg)](https://godoc.org/github.com/WindomZ/qrw)\n\n## Features\n- [x] Output to **text**\n  - [x] two characters as a block\n  - [x] half character as a block\n- [x] Output to **terminal**\n  - [x] bash\n  - [x] zsh\n- [x] Output to **file**\n  - [x] text\n  - [x] png\n  - [x] jpeg\n\n## Example\nAs shown in the figure, you can get started quickly with the following example:\n\n![image](https://user-images.githubusercontent.com/14875359/37985673-04e85e8a-322c-11e8-882e-dc8b49d215c7.png)\n\n### BlockWriter\nShow a QR block by _two characters_.\n\n##### Output to `io.Writer`:\n```\nBlockWrite(os.Stdout, L, \"Hello world!\")\n```\n\n##### Output to `file`:\n```\nBlockWriteFile(\"file_path\", L, \"Hello world!\")\n```\n\n### HalfBlockWriter\nShow a QR block by _half character_.\n\n##### Output to `io.Writer`:\n```\nHalfBlockWrite(os.Stdout, L, \"Hello world!\")\n```\n\n##### Output to `file`:\n```\nHalfBlockWriteFile(\"file_path\", L, \"Hello world!\")\n```\n\n## Usage\nCommon functions:\n```\nfunc BlockWrite(io.Writer, Level, string) error\nfunc BlockWriteFile(string, Level, string) error\nfunc HalfBlockWrite(io.Writer, Level, string) error\nfunc HalfBlockWriteFile(string, Level, string) error\nfunc Bash(Level, string) error\nfunc PNG(string, Level, string) error\nfunc JPEG(string, Level, string) error\n```\n\nSee [document](https://godoc.org/github.com/WindomZ/qrw).\n\n### Level(error correction level)\nFrom least to most tolerant of errors:\n- `L` 20% redundant\n- `M` 38% redundant\n- `Q` 55% redundant\n- `H` 65% redundant\n\nThe definitions comes from [rsc/qr](https://github.com/rsc/qr/blob/master/qr.go#L23).\n\n## Install\n```bash\ngo get -u github.com/WindomZ/qrw\n```\n\n## Related\n- Driven by [rsc/qr](https://github.com/rsc/qr)\n- Inspired by [mdp/qrterminal](https://github.com/mdp/qrterminal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fqrw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fqrw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fqrw/lists"}