Alfred 3 workflows library for Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
.gitignore
README.md
alfred.go
item.go

README.md

alfred-go

Alfred 3 workflows library for Go

Example

First, install alfred-go

$ go get github.com/endotakuya/alfred-go/...

Usage

package main

import (
	"github.com/endotakuya/alfred-go"
)

func main() {
	a := alfred.New()

	item := alfred.NewItem()
	item.Title = "example"
	item.Arg = "http://example.com/"
	a.Append(item)

	a.Print()
}

and, go build

$ go build -o workflow main.go

In the Script Filter's Script box. (Language: /bin/bash)

./workflow