Files
fn_registry/functions/infra/wails_bind_crud.md
T
egutierrez 6deef76427 feat: funciones Wails — scaffold, CRUD bindings, build, eventos y streaming
Funciones Go para crear apps Wails: scaffold estructura, bind CRUD genérico,
build multiplataforma, emit eventos y stream de datos al frontend.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 20:55:24 +02:00

1.1 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, 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 tested tests test_file_path file_path
wails_bind_crud function go infra 1.0.0 pure GenerateWailsCRUD(spec WailsCRUDSpec) string Genera código Go de bindings CRUD para Wails: struct + métodos List/Get/Create/Update/Delete con stubs not-implemented.
wails
crud
generator
bindings
codegen
infra
false
fmt
strings
false
functions/infra/wails_bind_crud.go

Ejemplo

code := GenerateWailsCRUD(WailsCRUDSpec{
    EntityName: "User",
    Fields:     []string{"Name string", "Email string", "Role string"},
    WithList:   true,
    WithGet:    true,
    WithCreate: true,
    WithUpdate: true,
    WithDelete: true,
})
// Genera: type User struct + ListUsers + GetUser + CreateUser + UpdateUser + DeleteUser

Notas

Función pura — genera código como string. Los métodos son stubs con return fmt.Errorf("not implemented"). Un agente puede generar el código, insertarlo en app.go, y luego implementar los TODOs.