Files
fn_registry/functions/tui/new_progress_with_styles.md
egutierrez 5f4f1f7508 docs: params/output semántico en 506 funciones para composabilidad
Añade campos params y output al frontmatter YAML de las 506 funciones del registry.
Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico)
y cada función describe qué produce su output. Permite a agentes razonar sobre
cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
2026-04-05 18:45:16 +02:00

1.0 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
new_progress_with_styles function go tui 1.0.0 pure func NewProgressWithStyles(total float64, label string, styles Styles) ProgressModel Construye un modelo de barra de progreso con valor total, etiqueta y estilos visuales personalizados.
tui
progress
styles
constructor
styles_go_tui
progress_model_go_tui
false
name desc
total valor total para la barra
name desc
label etiqueta descriptiva
name desc
styles Styles para aplicar a la barra
ProgressModel: barra de progreso estilizada false
functions/tui/new_progress_with_styles.go

Ejemplo

styles := DarkStyles()
model := NewProgressWithStyles(50.0, "Indexando", styles)

Notas

Variante de NewProgress que permite personalizar la apariencia de la barra mediante Styles.