{"id":44843190,"url":"https://github.com/mrgloba/gotspl","last_synced_at":"2026-02-17T03:48:30.174Z","repository":{"id":57555071,"uuid":"279797419","full_name":"mrgloba/gotspl","owner":"mrgloba","description":"Golang client for TSC printers (TSPL)","archived":false,"fork":false,"pushed_at":"2020-10-13T16:51:03.000Z","size":63,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T11:12:00.170Z","etag":null,"topics":["golang","tsc-printers","tspl","tspl2"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrgloba.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":"2020-07-15T07:27:36.000Z","updated_at":"2024-01-02T08:41:49.000Z","dependencies_parsed_at":"2022-09-26T18:51:35.430Z","dependency_job_id":null,"html_url":"https://github.com/mrgloba/gotspl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrgloba/gotspl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgloba%2Fgotspl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgloba%2Fgotspl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgloba%2Fgotspl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgloba%2Fgotspl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrgloba","download_url":"https://codeload.github.com/mrgloba/gotspl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgloba%2Fgotspl/sbom","scorecard":{"id":663964,"data":{"date":"2025-08-11","repo":{"name":"github.com/mrgloba/gotspl","commit":"5100518e1690926ac58a4df84461d3bce8eed17c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 2 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-21T17:15:42.096Z","repository_id":57555071,"created_at":"2025-08-21T17:15:42.096Z","updated_at":"2025-08-21T17:15:42.096Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29532496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","tsc-printers","tspl","tspl2"],"created_at":"2026-02-17T03:48:29.494Z","updated_at":"2026-02-17T03:48:30.158Z","avatar_url":"https://github.com/mrgloba.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gotspl\n======\n ![visitors](https://visitor-badge.laobi.icu/badge?page_id=page.id)\n[![Build Status](https://travis-ci.org/mrgloba/gotspl.svg?branch=master)](https://travis-ci.org/mrgloba/gotspl)\n[![Test Coverage](https://codecov.io/gh/mrgloba/gotspl/branch/master/graph/badge.svg)](https://codecov.io/gh/mrgloba/gotspl)\n\nGolang client for TSC printers (TSPL).\n\nThis library is being developed for communication and printing on TSPL/TSPL2 (by TSC) based printers.\n\nCurrently supported communication types:\n* Ethernet\n* RS232 (TODO)\n* USB (TODO)\n\n\u003e **Disclaimer:** This is not official or supported by TSC Auto ID Technology Co., Ltd.\n\u003e\n\u003e I started developing it because I could not find an appropriate library for Golang. Contributions of any type are welcome. Please contact via issues to discuss further.\n\n\nHow to\n======\n\nCreate printer connection\n\n```go\n# Initialize library \ngotspl.TSPLInitialize(gotspl.MEASUREMENT_SYSTEM_METRIC)\n\nclient := gotspl.NewEthernetTSPLClient(\"printer:9100\")\n\nerr := client.Connect()\nif err != nil {\n    panic(err)\n}\n\ndefer client.Disconnect()\n```\n\nCreate label\n\n```go\nlabel := gotspl.NewTSPLLabel()\nlabel = label.Cmd(gotspl.SizeCmd().\n        LabelWidth(30).\n        LabelLength(20)).\n    Cmd(gotspl.GapCmd().\n        LabelDistance(20).\n        LabelOffsetDistance(0)).\n    Cmd(gotspl.SpeedCmd().PrintSpeed(4)).\n    Cmd(gotspl.ClsCmd()).\n    Cmd(gotspl.DataMatrixCmd().\n        XCoordinate(100).\n        YCoordinate(100).\n        Width(300).\n        Height(300).\n        Content(\"THIS IS DATAMATRIX TEST\")).\n    Cmd(gotspl.PrintCmd().NumberLabels(1).NumberCopies(1))\n\t\n```\n\nSend commands to printer\n\n```go\nerr = client.SendCommandSequence(label)\nif err != nil {\n    panic(err)\n}\n```\n\nTSPL Code will send to printer\n\n```tspl\nSIZE 30 mm,20 mm\nGAP 20 mm,0\nSPEED 4\nCLS\nDMATRIX 100,100,300,300, \"THIS IS DATAMATRIX TEST\"\nPRINT 1,1\n```\n\nBased on documentation\n======================\n\n[Official documentation about TSPL programming](https://www.tscprinters.com/EN/DownloadFile/readpdf/support/4353/TSPL_TSPL2_Programming.pdf?file_type=0)\n\n[Looked at this github repository (tspl2-driver) for library design patterns](https://github.com/fintrace/tspl2-driver)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgloba%2Fgotspl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgloba%2Fgotspl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgloba%2Fgotspl/lists"}