-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
34 lines (24 loc) · 768 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"fmt"
"runtime"
"github.com/cratonica/trayhost"
)
// Refer to documentation at http://github.com/cratonica/trayhost for generating this
// var iconData []byte
func main() {
// EnterLoop must be called on the OS's main thread
runtime.LockOSThread()
go func() {
// Run your application/server code in here. Most likely you will
// want to start an HTTP server that the user can hit with a browser
// by clicking the tray icon.
// Be sure to call this to link the tray icon to the target url
trayhost.SetUrl("https://gitify.launchaco.com")
server()
}()
// Enter the host system's event loop
trayhost.EnterLoop("Gitify", Data)
// This is only reached once the user chooses the Exit menu item
fmt.Println("Exiting")
}