first-developer / notificator

Desktop notifications with golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notificator

Desktop notification with golang for:

  • Windows with growlnotify;
  • Mac OS X with growlnotify;
  • 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")
}

todo

  • Add more options for different notificators.

contribution

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

author

@0xAX

About

Desktop notifications with golang

License:BSD 3-Clause "New" or "Revised" License