notifize

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 2 Imported by: 10

README

notifize

a desktop notification package for Go / golang

GoDoc Version 1.0.0 Build Status License

GNU/Linux OS X
notifize_gnu_linux notifize_osx

how it works

send desktop notifications from your Go application

operating system support

  • GNU/Linux using libnotify notify-send
  • OS X 10.9+ using AppleScript display notification

I'd like to add support for other operating systems (primarily Windows and *BSD).

  • libnotify would probably work for *BSD but I don't want to implement without testing.
  • Windows doesn't seem to have an easy way of doing this, and I want to avoid doing something like bundling a 3rd party binary. Please let me know of any ideas/suggestions to provide Windows notifications cleanly.

installation

install and update this Go package with go get -u github.com/ctcpip/notifize

usage example

package main

import "github.com/ctcpip/notifize"

func main() {
  notifize.Display("title", "hello, world", false, "")
}

documentation / reference

godoc.org/github.com/ctcpip/notifize

projects that use notifize
stuff nobody cares about

this project uses...

license

GNU GPLv3

Documentation

Overview

Package notifize - a desktop notification package for Go / golang

Example
Display("title", "hello, world", false, "")
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(summary string, body string, isUrgent bool, iconPath string)

Display a notification

Example
Display("title", "hello, world", false, "")
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL