fix: tea model tests 6个月前 go.mod fix: bump shampoo renderer 6个月前 go.sum fix: bump shampoo renderer 6个月前 key.go refactor!: use x/input to handle events 6个月前 logging.go chore: restrict logfile permissions to owner-only ...
Bubble Tea is based on the functional design paradigms ofThe Elm Architecture, which happens to work nicely with Go. It's a delightful way to build applications. This tutorial assumes you have a working knowledge of Go. By the way, the non-annotated source code for this program is available...
Tutorial Bubble Tea is based on the functional design paradigms of The Elm Architecture, which happens to work nicely with Go. It's a delightful way to build applications. This tutorial assumes you have a working knowledge of Go. By the way, the non-annotated source code for this program ...
tea "github.com/charmbracelet/bubbletea" ) func (m model) Init() tea.Cmd { return nil } 1. 2. 3. 4. 5. 6. 我们需要响应按键事件,实现Update()方法。按键事件发生时会以相应的tea.Msg为参数调用Update()方法。通过对参数tea.Msg进行类型断言,我们可以对不同的事件进行对应的处理: func (m mode...
package tea import ( "context" "errors" "fmt" "io" "os" "os/signal" "runtime/debug" "sync" "sync/atomic" "syscall" "github.com/charmbracelet/x/term" "github.com/muesli/cancelreader" "golang.org/x/sync/errgroup" ) // ErrProgramKilled is returned by [Program.Run] when the program...
Sign in Sign up golang / go Public Notifications Fork 17.7k Star 124k Code Issues 5k+ Pull requests 484 Discussions Actions Projects 4 Wiki Security Insights New issue x/pkgsite: package removal request for go.binarysouljour.me/bubbletea #...
A customizable, interactive table component for the Bubble Tea framework go golang table tui bubble bubbles bubble-tea Updated Oct 31, 2024 Go ProudOfZiggy / SIFloatingCollection_Swift Star 452 Code Issues Pull requests iOS Swift framework for creating user interface like apple music genre...
Bumps golang.org/x/sys from 0.26.0 to 0.27.0. Commits e0753d4 Revert "windows/mkwinsyscall: use syscall.SyscallN instead of syscall.Syscall... c29efe3 windows: add iphlpapi functions for change n...
//github.com/charmbracelet/bubbletea/tree/master/examples package tea import ( "context" "errors" "fmt" "io" "os" "os/signal" "runtime/debug" "sync" "syscall" "time" "github.com/containerd/console" isatty "github.com/mattn/go-isatty" te "github.com/muesli/termenv" "golang.org/x/...