Files
fn_registry/functions/tui/new_progress.md
T
egutierrez 62dcadceb8 feat: 29 funciones TUI — constructores, runners y helpers del dominio tui
16 constructores puros (NewList, NewSpinner, NewProgress, DefaultStyles...),
4 runners impuros (RunModel, RunFullscreen, RunWithMouseSupport, Confirm),
5 print helpers impuros (PrintSuccess/Error/Warning/Info/Muted) y
4 utilidades puras (Quit, ClearScreen, HideCursor, ShowCursor).
Stubs que documentan devfactory/tui para el registry.
2026-03-28 03:58:12 +01:00

32 lines
674 B
Markdown

---
name: new_progress
kind: function
lang: go
domain: tui
version: "1.0.0"
purity: pure
signature: "func NewProgress(total float64, label string) ProgressModel"
description: "Construye un modelo de barra de progreso con valor total y etiqueta descriptiva."
tags: [tui, progress, constructor]
uses_functions: []
uses_types: []
returns: [progress_model_go_tui]
returns_optional: false
error_type: ""
imports: []
tested: false
tests: []
test_file_path: ""
file_path: "functions/tui/new_progress.go"
---
## Ejemplo
```go
model := NewProgress(100.0, "Descargando archivos")
```
## Notas
El progreso inicia en 0. El avance se actualiza via mensajes en el loop de Bubble Tea.