{"id":37099800,"url":"https://github.com/hasit/gohr","last_synced_at":"2026-01-14T12:10:19.993Z","repository":{"id":29929956,"uuid":"33476096","full_name":"hasit/gohr","owner":"hasit","description":"A horizontal ruler for your terminal in Go","archived":false,"fork":false,"pushed_at":"2017-06-14T23:29:27.000Z","size":1167,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T19:48:02.846Z","etag":null,"topics":["cli","go","utils"],"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/hasit.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":"2015-04-06T10:01:02.000Z","updated_at":"2024-03-01T17:13:24.000Z","dependencies_parsed_at":"2022-08-27T05:21:32.892Z","dependency_job_id":null,"html_url":"https://github.com/hasit/gohr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hasit/gohr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fgohr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fgohr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fgohr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fgohr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasit","download_url":"https://codeload.github.com/hasit/gohr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fgohr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","go","utils"],"created_at":"2026-01-14T12:10:19.047Z","updated_at":"2026-01-14T12:10:19.977Z","avatar_url":"https://github.com/hasit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gohr\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/hasit/gohr)](https://goreportcard.com/report/github.com/hasit/gohr) [![Build Status](https://travis-ci.org/hasit/gohr.svg?branch=master)](https://travis-ci.org/hasit/gohr)\n\nUnclutter your terminal using this small, but helpful Go package. `gohr` puts horizontal rulers in your terminal so that you can visually seperate parts of text.\n\n`hasit/gohr` comes with:\n1. `gohr` - An importable package to use in your own Go programs.\n2. `hr` - A CLI tool.\n\n`hasit/gohr` is a port of [LuRst/hr](https://github.com/LuRsT/hr).\n\n[![asciicast of gohr](https://asciinema.org/a/124619.png)](https://asciinema.org/a/124619)\n\n## Installation\n\n```\n$ go get -u github.com/hasit/gohr/cmd/hr\n```\n\nThis will download and install `gohr` package and `hr` executable.\n\n## Usage\n\n`gohr` can be used as a package and as a standalone CLI tool.\n\n### As a package\n\nTo use it in your own Go program, import `gohr` and call `gohr.Draw(args ...string)` function.\n\n```go\npackage main\n\nimport \"github.com/hasit/gohr\"\n\nfunc main() {\n\tgohr.DrawHr(\"-0-\")\n\tgohr.DrawHr(\"-\", \"#\")\n\tgohr.DrawHr(\".\", \"\\\\\", \"/\")\n}\n```\n\n### As a CLI tool\n\nTo use it as a standalone CLI tool, run `hr` from your terminal.\n\n```\n$ hr\n##########\n```\n\nYou can provide a symbol of your choice as a command line argument.\n\n```\n$ hr 'o'\noooooooooo\n```\n\nYou can also provide multiple patterns as arguments seperated by spaces.\n\n```\n$ hr '-' '#' '-'\n----------\n##########\n----------\n```\n\n```\n$ hr '-o-' '#' '-o-'\n-o--o--o--\n##########\n-o--o--o--\n```\n\n## Contribution\n\nFeel free to ask questions, post issues and open pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasit%2Fgohr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasit%2Fgohr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasit%2Fgohr/lists"}