Documentation ¶
Index ¶
- Constants
- Variables
- func Entry(title, msg, val string) (string, bool, error)
- func Error(title, msg string) (bool, error)
- func HasGUI() bool
- func HideConsoleWindow()
- func Info(title, msg string) (bool, error)
- func Notify(_ string, _ ...interface{}) error
- func OpenCmd(cmd ...string) error
- func OpenFile(filePath string) error
- func OpenLog(logFile string) error
- func OpenURL(url string) error
- func Question(title, text string, defaultCancel bool) (bool, error)
- func ShowConsoleWindow()
- func StartCmd(c string, v ...string) error
- func Warning(title, msg string) (bool, error)
Constants ¶
View Source
const SystrayIcon = "files/images/favicon.png"
SystrayIcon is the icon in the system tray or task bar.
Variables ¶
View Source
var ErrUnsupported = fmt.Errorf("unsupported OS")
ErrUnsupported is just an error.
Functions ¶
func HasGUI ¶
func HasGUI() bool
HasGUI returns false on Linux, true on Windows and optional on macOS.
func ShowConsoleWindow ¶ added in v0.1.15
func ShowConsoleWindow()
ShowConsoleWindow does nothing on OSes besides Windows.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.