Skip to content

Instantly share code, notes, and snippets.

@robinovitch61
robinovitch61 / main.go
Created May 16, 2022 18:59
BubbleTea Subcomponent Parent Updater Functions
package main
import (
"fmt"
tea "github.com/charmbracelet/bubbletea"
"os"
)
type SubComponentModel struct {
onClick func()
@robinovitch61
robinovitch61 / bubble-tea-demo.go
Last active August 17, 2022 17:56
Bubble Tea Demo
package main
import (
"encoding/json"
"fmt"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"io/ioutil"
"log"
"net/http"