{"id":22056653,"url":"https://github.com/kevincobain2000/go-progress-svg","last_synced_at":"2025-05-12T15:47:10.959Z","repository":{"id":241437960,"uuid":"806149579","full_name":"kevincobain2000/go-progress-svg","owner":"kevincobain2000","description":"Generate pure SVG circle progress bar or flat progress bars in GO.","archived":false,"fork":false,"pushed_at":"2024-11-28T10:51:10.000Z","size":162,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T23:51:13.349Z","etag":null,"topics":["loading-bar","loading-spinner","progress-bars","progress-battery","progress-circle","svg-generator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevincobain2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-26T14:12:04.000Z","updated_at":"2024-11-28T10:51:29.000Z","dependencies_parsed_at":"2024-06-03T15:13:10.271Z","dependency_job_id":"b3abc96a-7016-476b-90d8-a0fb0b8f2f0a","html_url":"https://github.com/kevincobain2000/go-progress-svg","commit_stats":null,"previous_names":["kevincobain2000/go-progress-svg"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincobain2000%2Fgo-progress-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincobain2000%2Fgo-progress-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincobain2000%2Fgo-progress-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincobain2000%2Fgo-progress-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevincobain2000","download_url":"https://codeload.github.com/kevincobain2000/go-progress-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767812,"owners_count":21961191,"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":["loading-bar","loading-spinner","progress-bars","progress-battery","progress-circle","svg-generator"],"created_at":"2024-11-30T16:14:28.731Z","updated_at":"2025-05-12T15:47:10.919Z","avatar_url":"https://github.com/kevincobain2000.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  SVG - Circle, Bar \u0026 Battery progress generator\n  \u003cbr\u003e\n  in Golang.\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"svg circle progress sample\" src=\"https://imgur.com/UOfAB33.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"svg circle progress sample\" src=\"https://imgur.com/LToiOr4.png\" width=\"300\"\u003e\n\u003c/p\u003e\n\n---\n\n**Circle Progress:** Generate pure SVG circle progress bar.\n\n**Bar Progress:** Generate pure SVG bar progress bar.\n\n**Battery Progress:** Generate pure SVG battery progress bar.\n\n**Supports Captions:** Add captions horizontally or vertically.\n\n**Customizable:** Customize with various color, width, height, background and caption options.\n\n**Lightweight:** No dependencies, just a single file.\n\n**Beautiful:** Customizable to rounded corners, different colors, and caption options.\n\n\n## Usage\n\n### Circle Progress\n\n```go\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\tgps \"github.com/kevincobain2000/go-progress-svg\"\n)\n\nfunc main() {\n\tcircular, _ := gps.NewCircular(func(o *gps.CircularOptions) error {\n        o.Progress = 97\n\t\to.CircleSize = 200\n\t\to.CircleWidth = 16\n\t\to.ProgressWidth = 16\n\t\to.CircleColor = \"#e0e0e0\"\n\t\to.ProgressColor = \"#76e5b1\"\n\t\to.TextColor = \"#6bdba7\"\n\t\to.TextSize = 52true\n\t\to.BackgroundColor = \"\"\n\t\to.Caption = \"\"\n\t\to.CaptionPos = \"bottom\"\n\t\to.CaptionSize = 20\n\t\to.CaptionColor = \"#000000\"\n        o.SegmentGap = 10\n\t\treturn nil\n\t})\n\n\tcircular.SVG()\n}\n```\n\n### Bar Progress\n\n```go\nimport (\n    \"fmt\"\n    \"os\"\n\n    gps \"github.com/kevincobain2000/go-progress-svg\"\n)\n\nfunc main() {\n    bar, _ := gps.NewBar(func(o *gps.BarOptions) error {\n\t\to.Progress = 97\n\t\to.Width = 200\n\t\to.Height = 50\n\t\to.ProgressColor = \"#76e5b1\"\n\t\to.TextColor = \"#6bdba7\"\n\t\to.TextSize = 20true\n\t\to.Caption = \"\"\n\t\to.CaptionSize = 16\n\t\to.CaptionColor = \"#000000\"\n\t\to.BackgroundColor = \"#e0e0e0\"\n\t\to.CornerRadius = 10\n        return nil\n    })\n\n    bar.SVG()\n}\n```\n\n### Battery Progress\n\n```go\n\tbattery, err := gps.NewBattery(func(o *gps.BatteryOptions) error {\n\t\to.Progress = 70\n\t\to.ProgressCaption = \"1%\"\n\t\to.Width = 200\n\t\to.Height = 50\n\t\to.ProgressColor = \"#76e5b1\"\n\t\to.TextColor = \"black\"\n\t\to.TextSize = 20\n\t\to.Caption = \"\"\n\t\to.CaptionSize = 16\n\t\to.CaptionColor = \"#000000\"\n\t\to.BackgroundColor = \"#e0e0e0\"\n\t\to.CornerRadius = 10\n\t\treturn nil\n\t})\n\tif err != nil {\n\t\tfmt.Println(\"Error creating Circular:\", err)\n\t\treturn\n\t}\n\n\tcontent := battery.SVG()\n```\n\n\n## CHANGE LOG\n\n- **v1.0.0** - initial release","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevincobain2000%2Fgo-progress-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevincobain2000%2Fgo-progress-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevincobain2000%2Fgo-progress-svg/lists"}