raguay.customct Posted June 3, 2013 Share Posted June 3, 2013 (edited) Hi, I just started a new library for the "http://golang.org" - go programming language from Google. It has all the basics to create a workflow using go. I will be adding to it. If you think of a function that needs to be in it, let me know or fork the library and do a pull request. You can get the library and example program https://github.com/raguay/goAlfred. Edited June 3, 2013 by raguay.customct Link to comment
raguay.customct Posted June 4, 2013 Author Share Posted June 4, 2013 I just updated the GitHub site for easy importing. To get the library, you have to run: go get github.com/raguay/goAlfred (you might need to use 'sudo' depending on your configuration of go) To use the library in your program, just include it with: import "github.com/raguay/goAlfred" Have fun. I am! Link to comment
laerador Posted June 4, 2013 Share Posted June 4, 2013 I like this! - I was already planning on rewriting my Workflow for installing applications in Go, i just havent gotten around to it yet, do to the fact, that I dislike publishing an executable instead of a script :/ We'll see, maybe I start rewriting my Workflow this weekend. Anyway, I'm looking forward to how this Library is going to develop, thank you for that! (Btw. I am going to write a pull request right today, just fixing your Readme somewhat.) Link to comment
raguay.customct Posted June 4, 2013 Author Share Posted June 4, 2013 Hi laerador, Thanks for the help with the readme. I am new to Markdown and using GitHub, but I am learning. The library right now is very basic (I patterned it after the workflow.php library). If you think of any new functions or write them, just let me know and I will add them into the main. I would like to see this go well since it helps the workflows run so much faster! I am working on my AlfredTimeKeeper to move it to go as well. Stay tuned! Link to comment
raguay.customct Posted June 12, 2013 Author Share Posted June 12, 2013 Hi, just upgraded the goAlfred library. The latest beta of Alfred 2 showed a bug in my library (my closing tag was </times> instead of </items>. The older versions allowed it). It is all fixed now. Thanks. Link to comment
raguay.customct Posted June 12, 2013 Author Share Posted June 12, 2013 (edited) Just added two new functions: setting a default message string so the ToXML will always produce something usable, and a conditionally add XML string based on the title containing part of the string passed. Alfred Time Keeper is making use of these additions. Also, the ToXML routine only creates xml for items that have a title. Others are ignored. Edited June 12, 2013 by raguay.customct Link to comment
raguay.customct Posted June 20, 2013 Author Share Posted June 20, 2013 I just updated the library. I had the creating mode set wrong and made directories that could not be read. Thinking in hex while I should be programming it in octal can really mess you up! Sorry if this caused some problems. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now