{"id":13410188,"url":"https://github.com/gosuri/uilive","last_synced_at":"2025-04-10T23:25:47.870Z","repository":{"id":43908668,"uuid":"46255681","full_name":"gosuri/uilive","owner":"gosuri","description":"uilive is a go library for updating terminal output in realtime","archived":false,"fork":false,"pushed_at":"2023-07-22T11:29:29.000Z","size":332,"stargazers_count":1704,"open_issues_count":11,"forks_count":87,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-03T13:14:07.418Z","etag":null,"topics":[],"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/gosuri.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-16T06:13:10.000Z","updated_at":"2025-03-31T14:07:49.000Z","dependencies_parsed_at":"2024-06-18T11:16:24.262Z","dependency_job_id":"b8faf5c3-85c3-488d-aad7-723da74590a0","html_url":"https://github.com/gosuri/uilive","commit_stats":{"total_commits":33,"total_committers":12,"mean_commits":2.75,"dds":0.6060606060606061,"last_synced_commit":"11a6ee751a6abd840dd858d3ce569bdddb7d8ba2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuri%2Fuilive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuri%2Fuilive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuri%2Fuilive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gosuri%2Fuilive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gosuri","download_url":"https://codeload.github.com/gosuri/uilive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248313768,"owners_count":21082908,"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":[],"created_at":"2024-07-30T20:01:05.444Z","updated_at":"2025-04-10T23:25:47.846Z","avatar_url":"https://github.com/gosuri.png","language":"Go","readme":"# uilive [![GoDoc](https://godoc.org/github.com/gosuri/uilive?status.svg)](https://godoc.org/github.com/gosuri/uilive) [![Build Status](https://travis-ci.org/gosuri/uilive.svg?branch=master)](https://travis-ci.org/gosuri/uilive)\n\nuilive is a go library for updating terminal output in realtime. It provides a buffered [io.Writer](https://golang.org/pkg/io/#Writer) that is flushed at a timed interval. uilive powers [uiprogress](https://github.com/gosuri/uiprogress).\n\n## Usage Example\n\nCalling `uilive.New()` will create a new writer. To start rendering, simply call `writer.Start()` and update the ui by writing to the `writer`. Full source for the below example is in [example/main.go](example/main.go).\n\n```go\nwriter := uilive.New()\n// start listening for updates and render\nwriter.Start()\n\nfor i := 0; i \u003c= 100; i++ {\n  fmt.Fprintf(writer, \"Downloading.. (%d/%d) GB\\n\", i, 100)\n  time.Sleep(time.Millisecond * 5)\n}\n\nfmt.Fprintln(writer, \"Finished: Downloaded 100GB\")\nwriter.Stop() // flush and stop rendering\n```\n\nThe above will render\n\n![example](doc/example.gif)\n\n## Installation\n\n```sh\n$ go get -v github.com/gosuri/uilive\n```\n","funding_links":[],"categories":["命令行","Command Line","Go","\u003cspan id=\"命令行-command-line\"\u003e命令行 Command Line\u003c/span\u003e","Build Automation","高级控制台UI`用于构建控制台应用程序和控制台用户界面的库.`","高级控制台UI"],"sub_categories":["高级控制台用户界面","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuri%2Fuilive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgosuri%2Fuilive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgosuri%2Fuilive/lists"}