A Gopher named Gophy

If you are just starting out with Go, head over to the Go Playground and concentrate on figuring out how my little Go Story works. It’s about a Gopher, named Gophy who joint the Gophers but lost his identity in the process. Once you get how he gets his identity back you’ll be golden. Here is the code: package main import "fmt" type I interface{} var gophers map[uint]I = make(map[uint]I) type gopher struct { Name string } func main() { g := AddToGophers("Goghy") fmt.


Features: You can define your config items in your application as a struct. You can save a json template of your struct You can save runtime modifications to the config Docs: import "bitbucket.org/gotamer/cfg" func Load(filename string, o interface{}) (err error) Load gets your config from the json file, and fills your struct with the option func Save(filename string, o interface{}) (err error) Save will save your struct to the given filename, this is a good way to create a json template


About the implementation: This project is in alha state! Object Types Tuple (In Memory Database) Beta List (Single file persistent database) Beta Object (Multi file persistent database) Alpha Cache (Cache for Tuple) Not yet implemented Backends Json Glob Not yet implemented The major distinction between List and Object is that one, the List type uses a single file as backend with each record placed in one line.

Citadel vCard Sync

Features Citadel Sync will work on most operating systems including Linux, Mac, PC, Android … Converts a multi vCard file in to many for each to hold a single contact Adds UID and REV fields to the vCard if missing Uploads vCards to a given remote [Citadel] Mail Server You can specify, which folder on the server to upload to Can populate the Display name field from first and last name, or populate first and last name from display name Features planned Compare revision state and sync in case you modify a vCard on the server.

Sometimes I fall in love with code

I don’t use this, since I need often more but isn’t this just need? http://play.golang.org/p/QFheQeChIn package main import "log" const debug debugging = true // or flip to false type debugging bool func (d debugging) Printf(format string, args ...interface{}) { d { log.Printf(format, args...) } } func main() { debug.Printf("foo %d %.2f", 42, 12.7) }

Hugo, a static website generator

Just a couple of days ago I posted about jkl, a static website generator written in Go, and based on Jekyll. While setting up jkl, I stumbled over Hugo! I was impressed at first sight with Hugo. Since then I have reconfigured my site to work with Hugo. I didn’t have to fiddle with the Hugo code, everything just works, and it really does most everything that comes to mind. This whole website thing has been bothering me for a long time; and finally I am a happy champer.