A small command line utility to display the current time at a given location. It's a mash between Google Maps API (JSON) and Geonames (XML).
Tuesday, July 3, 2012
Saturday, April 28, 2012
Thursday, April 19, 2012
Open file/urls with default program
Here's the code for a cross platform way to open file/uri with default application.
You can also install the package with
go install bitbucket.org/tebeka/desktop
You can also install the package with
go install bitbucket.org/tebeka/desktop
Monday, April 16, 2012
Web/Desktop Application
Currently there's no easy/cross platform way to write desktop applications in go.However I found out the for simple UI (which in my case covers most of them). I can get away with writing the application as a web server and point the user browser to it.
Here is a small example for a guest book:
Saturday, April 7, 2012
Building Go Projects
Now that Go1 is out, the way to build projects is using the go tool. I found out that the following process works for me.
I have a directory goroot somewhere and there under src I have all my projects. Then I use the following Makefile (this is an example from selenium/webdriver client).
I have a directory goroot somewhere and there under src I have all my projects. Then I use the following Makefile (this is an example from selenium/webdriver client).
Wednesday, December 14, 2011
dayrange
While working on something else, I need to write a little utility function that returns a range of days. (When the new time package make it to release, this should be much simpler).
Tuesday, December 6, 2011
AppEngine Demo - URL Shortener
Here you can find a small AppEngine Go example.It is a URL shortener (like bit.ly). I shows the following capabilities:
- HTTP Serving
- Templates
- Datastore
- Task Queue
- Logging
- Memcache
Subscribe to:
Posts (Atom)
