{"id":13366698,"url":"https://github.com/TheCreeper/Go-notify","last_synced_at":"2025-03-12T18:31:18.378Z","repository":{"id":28012935,"uuid":"31507595","full_name":"TheCreeper/go-notify","owner":"TheCreeper","description":"Package notify provides an implementation of the Gnome DBus Notifications Specification.","archived":false,"fork":false,"pushed_at":"2020-12-11T18:09:42.000Z","size":48,"stargazers_count":69,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T05:23:21.197Z","etag":null,"topics":["dbus","desktop-notifications","freedesktop","freedesktop-notifications","gnome","go","golang","libnotify","linux","linux-desktop","notify-send"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCreeper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-01T19:21:44.000Z","updated_at":"2024-06-25T01:29:36.000Z","dependencies_parsed_at":"2022-09-04T09:01:06.122Z","dependency_job_id":null,"html_url":"https://github.com/TheCreeper/go-notify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCreeper%2Fgo-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCreeper%2Fgo-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCreeper%2Fgo-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCreeper%2Fgo-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCreeper","download_url":"https://codeload.github.com/TheCreeper/go-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271263,"owners_count":20264422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dbus","desktop-notifications","freedesktop","freedesktop-notifications","gnome","go","golang","libnotify","linux","linux-desktop","notify-send"],"created_at":"2024-07-30T00:01:29.943Z","updated_at":"2025-03-12T18:31:18.078Z","avatar_url":"https://github.com/TheCreeper.png","language":"Go","readme":"# go-notify\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/TheCreeper/go-notify)](https://pkg.go.dev/github.com/TheCreeper/go-notify)\n\nPackage notify provides an implementation of the Gnome DBus\n[Notifications Specification](https://developer.gnome.org/notification-spec).\n\n## Examples\n\nDisplay a simple notification.\n```Go\nntf := notify.NewNotification(\"Test Notification\", \"Just a test\")\nif _, err := ntf.Show(); err != nil {\n\treturn\n}\n```\n\nDisplay a notification with an icon. Consult the\n[Icon Naming Specification](http://standards.freedesktop.org/icon-naming-spec).\n```Go\nntf := notify.NewNotification(\"Test Notification\", \"Just a test\")\nntf.AppIcon = \"network-wireless\"\nif _, err := ntf.Show(); err != nil {\n\treturn\n}\n```\n\nDisplay a notification that never expires.\n```Go\nntf := notify.NewNotification(\"Test Notification\", \"Just a test\")\nntf.Timeout = notify.ExpiresNever\nif _, err := ntf.Show(); err != nil {\n\treturn\n}\n```\n\nPlay a sound with the notification.\n```Go\nntf := notify.NewNotification(\"Test Notification\", \"Just a test\")\nntf.Hints = make(map[string]interface{})\nntf.Hints[notify.HintSoundFile] = \"/home/my-username/sound.oga\"\nif _, err := ntf.Show(); err != nil {\n\treturn\n}\n```\n","funding_links":[],"categories":["消息"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCreeper%2FGo-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheCreeper%2FGo-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCreeper%2FGo-notify/lists"}