zenity/zenity_darwin.go

13 lines
251 B
Go
Raw Permalink Normal View History

2022-06-28 09:52:02 -04:00
package zenity
2022-12-14 18:53:30 -05:00
func isAvailable() bool { return true }
func attach(id any) Option {
2022-06-28 09:52:02 -04:00
switch id.(type) {
case int, string:
default:
panic("interface conversion: expected int or string")
}
return funcOption(func(o *options) { o.attach = id })
}