doodle/pkg/modal/modal_test.go

16 lines
249 B
Go
Raw Normal View History

package modal_test
import (
"fmt"
2022-09-24 22:17:25 +00:00
modal "git.kirsle.net/SketchyMaze/doodle/pkg/modal"
)
func ExampleAlert() {
alert := modal.Alert("Permission Denied").WithTitle("Error").Then(func() {
fmt.Println("Alert button answered!")
})
_ = alert
}