doodle/pkg/modal/modal_test.go

16 lines
249 B
Go

package modal_test
import (
"fmt"
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
}