Documentation ¶
Index ¶
- func AddExtraLine(err error, extraLine string) error
- func BreakAwayFromParent(cmd *exec.Cmd)
- func CallLibrary(path string, funcName string, arg string) (err error)
- func CreateDesktopShortcut(src, title, description, iconSrc string, arguments ...string) error
- func CreateProductWorkDir(productWorkDir string) error
- func CreateStartMenuShortcut(src, folder, title, description, iconSrc string, arguments ...string) error
- func HideJavaWindowIfNeeded(cmd *exec.Cmd)
- func HideWindow(cmd *exec.Cmd)
- func InstallApp(app *AppInfo) error
- func LoadFont(fontFace string, size int, scaling float64) (font.Face, error)
- func LoadIconAndSetForWindow(windowTitle string) error
- func LoadPngImage(reader io.Reader) (rgbaImage *image.RGBA, err error)
- func OpenOrCreateProductLogFile(productLogFile string) (*os.File, error)
- func OpenTextFile(filename string) error
- func PrettyPrint(v interface{}) error
- func QuoteString(s string) string
- func RemoveDesktopShortcut(title string) error
- func RemoveStartMenuFolder(folder string) error
- func ShowFatalError(text string)
- func ShowUsage(productTitle, productVersion, text string)
- func SplitEscapedString(s string) []string
- func UninstallApp(title string) error
- type AppInfo
- type ErrorWithExtraLine
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExtraLine ¶
func BreakAwayFromParent ¶
func CreateDesktopShortcut ¶
func CreateProductWorkDir ¶
func CreateStartMenuShortcut ¶
func HideJavaWindowIfNeeded ¶
func HideWindow ¶
func InstallApp ¶
func LoadIconAndSetForWindow ¶
func OpenTextFile ¶
func PrettyPrint ¶
func PrettyPrint(v interface{}) error
PrettyPrint outputs v as JSON with indentation
Example ¶
type A struct { A int B string } a := A{1, "hello"} PrettyPrint(a)
Output: { "A": 1, "B": "hello" }
func QuoteString ¶
func RemoveDesktopShortcut ¶
func RemoveStartMenuFolder ¶
func ShowFatalError ¶
func ShowFatalError(text string)
func SplitEscapedString ¶
func UninstallApp ¶
Types ¶
type ErrorWithExtraLine ¶
type ErrorWithExtraLine struct {
// contains filtered or unexported fields
}
func (*ErrorWithExtraLine) Error ¶
func (w *ErrorWithExtraLine) Error() string
func (*ErrorWithExtraLine) ExtraLine ¶
func (w *ErrorWithExtraLine) ExtraLine() string
Click to show internal directories.
Click to hide internal directories.