This commit is contained in:
Michał Gdula 2024-01-24 18:02:19 +00:00
parent a2c0d9d825
commit be4c6c7fcf
6 changed files with 143 additions and 75 deletions

View file

@ -21,6 +21,8 @@ type Toast struct {
func AddToast(text string) {
toast := Toast{Text: text, Age: time.Now()}
toasts = append(toasts, toast)
fmt.Printf("Added Toast: '%s'\n", text)
}
func UpdateToasts() {