notification

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: ISC Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notif

type Notif struct {
	Title   string
	Message string
}

Notif struct holds information about the notification. Other parameters like urgency & timeout could be added when required.

func (Notif) Notify

func (n Notif) Notify() error

Notify sends a desktop notification to the user using libnotify. It handles information in the form of Notif struct. It returns an error (if exists).

Jump to

Keyboard shortcuts

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