All Projects → 0xAX → Notificator

0xAX / Notificator

Licence: bsd-3-clause
Desktop notifications with golang

Programming Languages

go
31211 projects - #10 most used programming language

notificator

Desktop notification with Golang for:

  • Windows with growlnotify;
  • Mac OS X with terminal-notifier (if installed) or osascript (native, 10.9 Mavericks or Up.);
  • Linux with notify-send for Gnome and kdialog for Kde.

Usage

package main

import (
  "github.com/0xAX/notificator"
)

var notify *notificator.Notificator

func main() {

  notify = notificator.New(notificator.Options{
    DefaultIcon: "icon/default.png",
    AppName:     "My test App",
  })

  notify.Push("title", "text", "/home/user/icon.png", notificator.UR_CRITICAL)
}

TODO

  • Add more options for different notificators.

Сontribution

  • Fork;
  • Make changes;
  • Send pull request;
  • Thank you.

author

@0xAX

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].