Hello, very nice tutorial, but I have one question: why we do like so: switch msg := msg.(type) at the beginig of Update func for model. we shadowed msg to it type, but later we accessing actual msg by key := msg.String() - how it possible? thanks in advance.
The switch msg := msg.(type) construct is a powerful technique in Go to determine the dynamic type of an interface value. I found this official Go example - go.dev/tour/methods/16
Thank you so much for making a video on Bubble Tea 🥺💕 It's so nice to see people loving CLIs as much as we do!
Thank you for the amazing libraries!
Probably the best tutorial I've seen for BubbleTea; thank you!
This channel will go places
Awesome tutorial for bubbletea, I would very much like to see more :)
Thanks man!
this is awesome! do you plan to make full CRUD rest api tutorials with jwt? that wold be awesome! thank you for this!~
Thanks. Sure, this could be an interesting topic
What's the editor you're using?
I am using Zed.
Muy buen video, saludos desde México 🇲🇽
How do you handle window resizing for clipping text to be more dynamic ?
You can use tea.WindowSizeMsg message type for that and subscribe to it.
Hello, very nice tutorial, but I have one question:
why we do like so:
switch msg := msg.(type)
at the beginig of Update func for model.
we shadowed msg to it type, but later we accessing actual msg by key := msg.String() - how it possible? thanks in advance.
The switch msg := msg.(type) construct is a powerful technique in Go to determine the dynamic type of an interface value. I found this official Go example - go.dev/tour/methods/16
Great vid, but you should change the title though
Thanks, but what should be the title?
What's the editor you're using?
I am using Zed.