Repository navigation
Expand file tree
/
Copy pathimmygo.go
More file actions
55 lines (54 loc) · 2.07 KB
/
Copy pathimmygo.go
File metadata and controls
55 lines (54 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Package immygo provides a high-level Go UI framework built on Gio.
//
// ImmyGo makes building beautiful, modern desktop applications in Go as easy
// as building them with Avalonia in .NET. It wraps Gio's powerful but low-level
// rendering engine into an ergonomic, Fluent Design-inspired widget toolkit
// with built-in AI capabilities via Yzma.
//
// # Quick Start
//
// package main
//
// import (
// "github.com/amken3d/immygo/app"
// "github.com/amken3d/immygo/widget"
// "github.com/amken3d/immygo/layout"
// "github.com/amken3d/immygo/theme"
// giolayout "gioui.org/layout"
// )
//
// func main() {
// app.New("My App").
// WithLayout(func(gtx giolayout.Context, th *theme.Theme) giolayout.Dimensions {
// return layout.NewVStack().
// Child(func(gtx giolayout.Context) giolayout.Dimensions {
// return widget.H1("Hello, ImmyGo!").Layout(gtx, th)
// }).
// Child(func(gtx giolayout.Context) giolayout.Dimensions {
// return widget.NewButton("Click Me").Layout(gtx, th)
// }).
// Layout(gtx)
// }).
// Run()
// }
//
// # Architecture
//
// ImmyGo is organized into focused packages:
//
// - app: Application scaffold, window management, event loop
// - theme: Fluent Design-inspired colors, typography, spacing
// - widget: Ready-to-use controls (Button, TextField, Card, ListView, etc.)
// - layout: Avalonia-style layout panels (VStack, HStack, Grid, Dock, Wrap)
// - style: CSS-like styling with pseudo-class state management
// - ai: AI capabilities via Yzma (local LLM chat, autocomplete, summarization)
//
// # Design Principles
//
// - Beautiful by default: Fluent Design theme with light/dark modes
// - Easy to learn: Chainable builder APIs, no raw Gio ops needed
// - AI-native: Built-in AI assistant and smart widgets via Yzma
// - Composable: Mix and match layouts and widgets freely
// - Go-idiomatic: No code generation, no macros, just Go
package immygo
const Version = "0.1.1"