Hi, I am currently learning go on my free time and wanted to create plugins for alfred. For now I am running a simple test from awgo.
package main
import (
aw "github.com/deanishe/awgo"
_ "github.com/joho/godotenv/autoload"
)
// Workflow is the main API
var wf *aw.Workflow
func init() {
// Create a new Workflow using default settings.
// Critical settings are provided by Alfred via environment variables,
// so this *will* die in flames if not run in an Alfred-like environment.
wf = aw.New()
}
// Your workflow starts here
func run() {
// Add a "Script Filter" result
wf.NewItem("First result!")
// Send results to Alfred
wf.SendFeedback()
}
func main() {
// Wrap your entry point with Run() to catch and log panics and
// show an error in Alfred instead of silently dying
wf.Run(run)
}
After that, run build and pack command, but the comes out empty. Am I doing something wrong?
Hi, I am currently learning go on my free time and wanted to create plugins for alfred. For now I am running a simple test from
awgo
.After that, run build and pack command, but the comes out empty. Am I doing something wrong?