bubbletea/examples/progress-download
Carlos Alexandro Becker b80eb8303b
docs: fix lint issues in examples and tutorials (#759)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-09 13:33:53 -03:00
..
main.go docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
README.md docs: README progress-download folder + ignore 2022-08-18 12:57:30 -04:00
tui.go chore: clean up linter errors in examples 2022-10-08 00:56:56 +02:00

Download Progress

This example demonstrates how to download a file from a URL and show its progress with a Progress Bubble.

In this case we're getting download progress with an io.TeeReader and sending progress Msgs to the Program with Program.Send().

How to Run

Build the application with go build ., then run with a --url argument specifying the URL of the file to download. For example:

./progress-download --url="https://download.blender.org/demo/color_vortex.blend"

Note that in this example a TUI will not be shown for URLs that do not respond with a ContentLength header.


This example originally came from this discussion.


The Charm logo

Charm热爱开源 • Charm loves open source