{"id":25668476,"url":"https://github.com/borud/console","last_synced_at":"2025-10-11T20:11:51.375Z","repository":{"id":244009364,"uuid":"814038472","full_name":"borud/console","owner":"borud","description":"a simple Fyne widget to provide a console that shows messages","archived":false,"fork":false,"pushed_at":"2024-06-12T14:17:52.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T10:43:47.758Z","etag":null,"topics":["console","fyne","golang","widget"],"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/borud.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":"2024-06-12T08:16:45.000Z","updated_at":"2024-06-12T14:17:55.000Z","dependencies_parsed_at":"2024-06-19T02:56:51.408Z","dependency_job_id":null,"html_url":"https://github.com/borud/console","commit_stats":null,"previous_names":["borud/console"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/borud/console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borud","download_url":"https://codeload.github.com/borud/console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008579,"owners_count":26084480,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["console","fyne","golang","widget"],"created_at":"2025-02-24T10:34:11.814Z","updated_at":"2025-10-11T20:11:51.343Z","avatar_url":"https://github.com/borud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console Fyne Widget\n\n`Console` is a simple fyne Widget intended for logging messages to a window.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/borud/console.svg)](https://pkg.go.dev/github.com/borud/console)\n\n![Screenshot](console.png)\n\n## Example\n\nA very simple usage example:\n\n```go\npackage main\nimport (\n    \"fmt\"\n    \"time\"\n\n    \"fyne.io/fyne/v2\"\n    \"fyne.io/fyne/v2/app\"\n    \"github.com/borud/console\"\n)\n\nfunc main() {\n    app := app.New()\n    win := app.NewWindow(\"Console test\")\n    win.Resize(fyne.NewSize(1000, 1000))\n    \n    console := console.NewConsole()\n    console.ScrollToBottom = true\n    console.MaxLines = 1000\n\n    go func() {\n        for i := 0; ; i++ {\n            console.Append(fmt.Sprintf(\"This is log message %d at %s\", i, time.Now().Format(time.RFC3339)))\n           time.Sleep(500 * time.Millisecond)\n        }\n    }()\n\n    win.SetContent(console)\n    win.ShowAndRun()\n}\n```\n\n## Building example\n\nThere is a slightly more elaborate example included in `cmd/console` which you can build by running\n\n```shell\nmake\n```\n\nThis will produce the binary `bin/console`.\n\n## Notes\n\nBig thank you to [Andy Williams](https://github.com/andydotxyz) for suggesting I use the List widget for the log view.\n\nWhen the next release of Fyne becomes available it should be possible to get rid of the list item separator.\n\nIf you have some tips for how I can improve this, you can talk to me on the [Gophers Slack](https://gophers.slack.com/archives/D026HLJ31H7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborud%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fconsole/lists"}