Home — goUI

goUI

v0.1.1 Estável v0.2 em desenvolvimento Go 1.22+

Interfaces web server-rendered em Go puro. Sem JavaScript obrigatório, sem build step, sem frameworks externos.

Por que goUI?

SSR Ultra-Rápido

HTML puro entregue pelo servidor. Zero bundle, zero hydration cost, zero cold start de frontend.

Go Puro

Componentes, rotas e validação inteiramente em Go. Nenhum template externo ou arquivo estático obrigatório.

Reatividade Watch/Bind

Sincronize inputs, textos e cores entre componentes — sem escrever uma linha de JavaScript.

CLI Incluída

`goui new myapp` e você tem um app rodando em segundos com roteamento baseado em arquivos.

Início Rápido

1. Instale

bash
go get github.com/M4R4G0N/[email protected]

2. Inicialize

bash
go mod init meuapp
go get github.com/M4R4G0N/[email protected]

3. Crie seu app

go
package main

import (
    goui "github.com/M4R4G0N/goUI"
    "github.com/M4R4G0N/goUI/components"
)

func main() {
    app := goui.NewApp()

    app.RegisterRoute("/", components.NewPage(
        components.Headbar("Meu App"),
        components.Navbar("goUI",
            components.Link{Href: "/", Text: "Home"},
        ),
        components.Div(
            components.Text("Olá, goUI!", "h1"),
            components.Button("Clique aqui", components.Primary),
        ),
    ))

    app.Start("", "8080")
}

Catálogo de Componentes