forked from nikitavoloboev/alfred-web-searches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
35 lines (27 loc) · 720 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
35
package main
import (
aw "github.com/deanishe/awgo"
"github.com/deanishe/awgo/update"
)
var (
// Icons
updateAvailable = &aw.Icon{Value: "icons/update-available.png"}
redditIcon = &aw.Icon{Value: "icons/reddit.png"}
githubIcon = &aw.Icon{Value: "icons/github.png"}
translateIcon = &aw.Icon{Value: "icons/translate.png"}
forumsIcon = &aw.Icon{Value: "icons/forums.png"}
stackIcon = &aw.Icon{Value: "icons/stack.png"}
docIcon = &aw.Icon{Value: "icons/doc.png"}
query string
repo = "nikitavoloboev/alfred-web-searches"
wf *aw.Workflow
)
func init() {
wf = aw.New(update.GitHub(repo), aw.HelpURL(repo+"/issues"))
}
func run() {
doSearch()
}
func main() {
wf.Run(run)
}