zenity/internal/zenutil/env.go

29 lines
621 B
Go
Raw Normal View History

2022-05-02 09:03:51 -04:00
// Package zenutil is internal. DO NOT USE.
2021-04-30 14:19:14 -04:00
package zenutil
2022-05-02 10:03:48 -04:00
import "time"
2021-04-30 14:19:14 -04:00
// These are internal.
const (
ErrCanceled = stringErr("dialog canceled")
ErrExtraButton = stringErr("extra button pressed")
ErrUnsupported = stringErr("unsupported option")
)
2022-05-02 10:03:48 -04:00
// These are internal.
var (
Command bool
Timeout int
DateFormat = "%Y-%m-%d"
DateUTS35 = func() (string, error) { return "yyyy-MM-dd", nil }
DateParse = func(s string) (time.Time, error) { return time.Parse("2006-01-02", s) }
)
2022-06-02 07:49:31 -04:00
// Remove after 1.18.
type any = interface{}
2021-04-30 14:19:14 -04:00
type stringErr string
func (e stringErr) Error() string { return string(e) }