{"id":21334215,"url":"https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-go","last_synced_at":"2026-01-16T10:55:07.191Z","repository":{"id":40590607,"uuid":"273220415","full_name":"aspose-barcode-cloud/aspose-barcode-cloud-go","owner":"aspose-barcode-cloud","description":"Go module for communicating with the Aspose.BarCode Cloud API","archived":false,"fork":false,"pushed_at":"2026-01-14T05:59:53.000Z","size":598,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"v4","last_synced_at":"2026-01-14T09:24:19.719Z","etag":null,"topics":["aspose-cloud","barcode","barcode-detection","barcode-generator","barcode-images","barcode-reader","barcode-recognizer","barcode-scanner","barcode-scanning","barcodescanner","ean13","go","golang","qr","qr-generator","qrcode","qrcode-generator","qrcode-reader","qrcode-scanner","recognition"],"latest_commit_sha":null,"homepage":null,"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/aspose-barcode-cloud.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-18T11:29:19.000Z","updated_at":"2025-12-08T11:19:14.000Z","dependencies_parsed_at":"2024-01-11T21:59:23.047Z","dependency_job_id":"158cf658-bf83-4e62-a25f-2cedfff305b7","html_url":"https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-go","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.2857142857142857,"last_synced_commit":"bb7a23f8064e787b20d11b0188615c19406ed3ab"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/aspose-barcode-cloud/aspose-barcode-cloud-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspose-barcode-cloud","download_url":"https://codeload.github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/tar.gz/refs/heads/v4","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspose-barcode-cloud%2Faspose-barcode-cloud-go/sbom","scorecard":{"id":212880,"data":{"date":"2025-08-11","repo":{"name":"github.com/aspose-barcode-cloud/aspose-barcode-cloud-go","commit":"23e8c0468235dde756d4c1d9fa050c1e41bb20b3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":6,"reason":"Found 19/29 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check-badges.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-badges.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/aspose-barcode-cloud/aspose-barcode-cloud-go/check-badges.yml/v4?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/aspose-barcode-cloud/aspose-barcode-cloud-go/go.yml/v4?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/aspose-barcode-cloud/aspose-barcode-cloud-go/go.yml/v4?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during GetBranch(main): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T01:04:52.021Z","repository_id":40590607,"created_at":"2025-08-17T01:04:52.021Z","updated_at":"2025-08-17T01:04:52.021Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aspose-cloud","barcode","barcode-detection","barcode-generator","barcode-images","barcode-reader","barcode-recognizer","barcode-scanner","barcode-scanning","barcodescanner","ean13","go","golang","qr","qr-generator","qrcode","qrcode-generator","qrcode-reader","qrcode-scanner","recognition"],"created_at":"2024-11-21T23:18:30.866Z","updated_at":"2026-01-16T10:55:07.186Z","avatar_url":"https://github.com/aspose-barcode-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aspose.BarCode Cloud SDK for Go\n\n[![License](https://img.shields.io/github/license/aspose-barcode-cloud/aspose-barcode-cloud-go)](LICENSE)\n[![Go](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/actions/workflows/go.yml)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/aspose-barcode-cloud/aspose-barcode-cloud-go?label=module\u0026sort=semver)](https://pkg.go.dev/github.com/aspose-barcode-cloud/aspose-barcode-cloud-go)\n\n- API version: 4.0\n- SDK version: 4.2601.0\n\n## SDK and API Version Compatibility:\n\n- SDK Version 4.2501.0 and Later: Starting from SDK version 25.1, all subsequent versions are compatible with API Version v4.0.\n- SDK Version 1.2412.0 and Earlier: These versions are compatible with API Version v3.0.\n\n## Demo applications\n\n[Scan QR](https://products.aspose.app/barcode/scanqr) | [Generate Barcode](https://products.aspose.app/barcode/generate) | [Recognize Barcode](https://products.aspose.app/barcode/recognize)\n:---: | :---: | :---:\n[![ScanQR](https://products.aspose.app/barcode/scanqr/img/aspose_scanqr-app-48.png)](https://products.aspose.app/barcode/scanqr) | [![Generate](https://products.aspose.app/barcode/generate/img/aspose_generate-app-48.png)](https://products.aspose.app/barcode/generate) | [![Recognize](https://products.aspose.app/barcode/recognize/img/aspose_recognize-app-48.png)](https://products.aspose.app/barcode/recognize)\n[**Generate Wi-Fi QR**](https://products.aspose.app/barcode/wifi-qr) | [**Embed Barcode**](https://products.aspose.app/barcode/embed) | [**Scan Barcode**](https://products.aspose.app/barcode/scan)\n[![Wi-FiQR](https://products.aspose.app/barcode/embed/img/aspose_wifi-qr-app-48.png)](https://products.aspose.app/barcode/wifi-qr) | [![Embed](https://products.aspose.app/barcode/embed/img/aspose_embed-app-48.png)](https://products.aspose.app/barcode/embed) | [![Scan](https://products.aspose.app/barcode/embed/img/aspose_scan-app-48.png)](https://products.aspose.app/barcode/scan)\n\n[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/) is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.\n\nThis repository contains Aspose.BarCode Cloud SDK for Go source code. This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Go applications quickly and easily.\n\nTo use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).\n\n## Prerequisites\n\nTo use Aspose.BarCode Cloud SDK for Go you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is a free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/).\n\n## Installation\n\n### Using Go Modules (recommended)\n\n1. Go to existing module directory, or create a new module (see \u003chttps://blog.golang.org/using-go-modules\u003e)\n1. Run `go get` command\n\n    ```shell script\n    go get -u github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/v4@v4.2601.0\n    ```\n\n## Sample usage\n\n### Generate an image with barcode\n\nThe examples below show how you can generate QR barcode and save it into a local file using **barcode**:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/antihax/optional\"\n\n\t\"github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/v4/barcode\"\n\t\"github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/v4/barcode/jwt\"\n)\n\nfunc main() {\n\tjwtConf := jwt.NewConfig(\n\t\t\"Client Id from https://dashboard.aspose.cloud/applications\",\n\t\t\"Client Secret from https://dashboard.aspose.cloud/applications\",\n\t)\n\tfileName := \"testdata/generated.png\"\n\n\tauthCtx := context.WithValue(context.Background(),\n\t\tbarcode.ContextJWT,\n\t\tjwtConf.TokenSource(context.Background()))\n\n\tclient := barcode.NewAPIClient(barcode.NewConfiguration())\n\n\topts := \u0026barcode.GenerateAPIGenerateOpts{\n\t\tTextLocation: optional.NewInterface(barcode.CodeLocationNone),\n\t}\n\n\tdata, _, err := client.GenerateAPI.Generate(authCtx,\n\t\tbarcode.EncodeBarcodeTypeQR,\n\t\t\"Go SDK example\",\n\t\topts)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tout, err := os.Create(fileName)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer func(out *os.File) {\n\t\t_ = out.Close()\n\t}(out)\n\n\twritten, err := out.Write(data)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"Written %d bytes to file %s\\n\", written, fileName)\n}\n\n```\n\n### Recognize a barcode on image\n\nThe examples below show how you can scan barcode text and type on the image using **barcode**:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/v4/barcode\"\n\t\"github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/v4/barcode/jwt\"\n)\n\nfunc main() {\n\tjwtConf := jwt.NewConfig(\n\t\t\"Client Id from https://dashboard.aspose.cloud/applications\",\n\t\t\"Client Secret from https://dashboard.aspose.cloud/applications\",\n\t)\n\tfileName := \"testdata/generated.png\"\n\n\timageFile, err := os.Open(fileName)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer func(file *os.File) {\n\t\t_ = file.Close()\n\t}(imageFile)\n\n\tclient := barcode.NewAPIClient(barcode.NewConfiguration())\n\tauthCtx := context.WithValue(context.Background(),\n\t\tbarcode.ContextJWT,\n\t\tjwtConf.TokenSource(context.Background()))\n\n\trecognized, _, err := client.ScanAPI.ScanMultipart(\n\t\tauthCtx,\n\t\timageFile)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tif len(recognized.Barcodes) == 0 {\n\t\tfmt.Printf(\"No barcodes in %s\", fileName)\n\t}\n\n\tfor i, oneBarcode := range recognized.Barcodes {\n\t\tfmt.Printf(\"Recognized #%d: %s %s\", i+1, oneBarcode.Type, oneBarcode.BarcodeValue)\n\t}\n}\n\n```\n\n## Dependencies\n\n- github.com/antihax/optional\n- github.com/google/uuid\n- golang.org/x/oauth2\n\n## Licensing\n\nAll Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).\n\n## Resources\n\n- [**Website**](https://www.aspose.cloud)\n- [**Product Home**](https://products.aspose.cloud/barcode/)\n- [**Documentation**](https://docs.aspose.cloud/barcode/)\n- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)\n- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)\n- [**Blog**](https://blog.aspose.cloud/categories/aspose.barcode-cloud-product-family/)\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *\u003chttps://api.aspose.cloud/v4.0\u003e*\n\nClass | Method | HTTP request | Description\n----- | ------ | ------------ | -----------\n*GenerateAPI* | [**Generate**](docs/GenerateAPI.md#generate) | **Get** /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string.\n*GenerateAPI* | [**GenerateBody**](docs/GenerateAPI.md#generatebody) | **Post** /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format.\n*GenerateAPI* | [**GenerateMultipart**](docs/GenerateAPI.md#generatemultipart) | **Post** /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form.\n*RecognizeAPI* | [**Recognize**](docs/RecognizeAPI.md#recognize) | **Get** /barcode/recognize | Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use \u0026#x60;recognize-body\u0026#x60; or \u0026#x60;recognize-multipart\u0026#x60; endpoints instead.\n*RecognizeAPI* | [**RecognizeBase64**](docs/RecognizeAPI.md#recognizebase64) | **Post** /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.\n*RecognizeAPI* | [**RecognizeMultipart**](docs/RecognizeAPI.md#recognizemultipart) | **Post** /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form.\n*ScanAPI* | [**Scan**](docs/ScanAPI.md#scan) | **Get** /barcode/scan | Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use \u0026#x60;scan-body\u0026#x60; or \u0026#x60;scan-multipart\u0026#x60; endpoints instead.\n*ScanAPI* | [**ScanBase64**](docs/ScanAPI.md#scanbase64) | **Post** /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format.\n*ScanAPI* | [**ScanMultipart**](docs/ScanAPI.md#scanmultipart) | **Post** /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form.\n\n## Documentation For Models\n\n- [ApiError](docs/ApiError.md)\n- [ApiErrorResponse](docs/ApiErrorResponse.md)\n- [BarcodeImageFormat](docs/BarcodeImageFormat.md)\n- [BarcodeImageParams](docs/BarcodeImageParams.md)\n- [BarcodeResponse](docs/BarcodeResponse.md)\n- [BarcodeResponseList](docs/BarcodeResponseList.md)\n- [CodeLocation](docs/CodeLocation.md)\n- [DecodeBarcodeType](docs/DecodeBarcodeType.md)\n- [EncodeBarcodeType](docs/EncodeBarcodeType.md)\n- [EncodeData](docs/EncodeData.md)\n- [EncodeDataType](docs/EncodeDataType.md)\n- [GenerateParams](docs/GenerateParams.md)\n- [GraphicsUnit](docs/GraphicsUnit.md)\n- [RecognitionImageKind](docs/RecognitionImageKind.md)\n- [RecognitionMode](docs/RecognitionMode.md)\n- [RecognizeBase64Request](docs/RecognizeBase64Request.md)\n- [RegionPoint](docs/RegionPoint.md)\n- [ScanBase64Request](docs/ScanBase64Request.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspose-barcode-cloud%2Faspose-barcode-cloud-go/lists"}